fix wayland map mode

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-04 18:35:01 +08:00
parent af32998af6
commit f56adbb56e
3 changed files with 26 additions and 29 deletions

View File

@@ -332,13 +332,13 @@ pub fn session_switch_display(id: String, value: i32) {
pub fn session_handle_flutter_key_event(
id: String,
name: String,
keycode: i32,
scancode: i32,
platform_code: i32,
position_code: i32,
lock_modes: i32,
down_or_up: bool,
) {
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
session.handle_flutter_key_event(&name, keycode, scancode, lock_modes, down_or_up);
session.handle_flutter_key_event(&name, platform_code, position_code, lock_modes, down_or_up);
}
}