diff --git a/examples/data_device.rs b/examples/data_device.rs index af2dd68cd..61c08b66e 100644 --- a/examples/data_device.rs +++ b/examples/data_device.rs @@ -438,6 +438,7 @@ impl KeyboardHandler for DataDeviceWindow { _: &wl_keyboard::WlKeyboard, _serial: u32, _modifiers: Modifiers, + _layout: u32, ) { } } diff --git a/examples/generic_simple_window.rs b/examples/generic_simple_window.rs index 8192311fb..80c1ea2a1 100644 --- a/examples/generic_simple_window.rs +++ b/examples/generic_simple_window.rs @@ -329,6 +329,7 @@ impl KeyboardHandler for SimpleWindow { _: &wl_keyboard::WlKeyboard, _serial: u32, modifiers: Modifiers, + _layout: u32, ) { println!("Update modifiers: {modifiers:?}"); } diff --git a/examples/simple_layer.rs b/examples/simple_layer.rs index 12b309d5a..883f58862 100644 --- a/examples/simple_layer.rs +++ b/examples/simple_layer.rs @@ -324,6 +324,7 @@ impl KeyboardHandler for SimpleLayer { _: &wl_keyboard::WlKeyboard, _serial: u32, modifiers: Modifiers, + _layout: u32, ) { println!("Update modifiers: {modifiers:?}"); } diff --git a/examples/simple_window.rs b/examples/simple_window.rs index 8cc097c32..49c20b421 100644 --- a/examples/simple_window.rs +++ b/examples/simple_window.rs @@ -368,6 +368,7 @@ impl KeyboardHandler for SimpleWindow { _: &wl_keyboard::WlKeyboard, _serial: u32, modifiers: Modifiers, + _layout: u32, ) { println!("Update modifiers: {modifiers:?}"); } diff --git a/examples/themed_window.rs b/examples/themed_window.rs index f26f7f8e5..0871797c7 100644 --- a/examples/themed_window.rs +++ b/examples/themed_window.rs @@ -463,6 +463,7 @@ impl KeyboardHandler for SimpleWindow { _: &wl_keyboard::WlKeyboard, _serial: u32, _: Modifiers, + _layout: u32, ) { } } diff --git a/src/seat/keyboard/mod.rs b/src/seat/keyboard/mod.rs index 573444db7..251875c7e 100644 --- a/src/seat/keyboard/mod.rs +++ b/src/seat/keyboard/mod.rs @@ -188,6 +188,7 @@ pub trait KeyboardHandler: Sized { keyboard: &wl_keyboard::WlKeyboard, serial: u32, modifiers: Modifiers, + layout: u32, ); /// The keyboard has updated the rate and delay between repeating key inputs. @@ -827,7 +828,7 @@ where // Always issue the modifiers update for the user. let modifiers = udata.update_modifiers(); - data.update_modifiers(conn, qh, keyboard, serial, modifiers); + data.update_modifiers(conn, qh, keyboard, serial, modifiers, group); } wl_keyboard::Event::RepeatInfo { rate, delay } => {