update rdev, fix grab system utf8, fallback on linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-09-15 15:34:02 +08:00
parent bb8438c770
commit 7b37e5183c
9 changed files with 19 additions and 7 deletions

View File

@@ -583,6 +583,8 @@ pub fn event_type_to_event(event_type: EventType) -> Event {
unicode: None,
platform_code: 0,
position_code: 0,
#[cfg(any(target_os = "windows", target_os = "macos"))]
extra_data: 0,
}
}