diff --git a/Cargo.toml b/Cargo.toml index 6e0ff6a..dbfd1f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.65.0" [dependencies] libc = "0.2.149" -sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [ +sctk = { package = "smithay-client-toolkit", version = "0.20", default-features = false, features = [ "calloop", ] } wayland-backend = { version = "0.3.3", default_features = false, features = [ @@ -25,7 +25,7 @@ raw-window-handle = { version = "0.6", optional = true } [dev-dependencies] dirs = "5.0.1" -sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [ +sctk = { package = "smithay-client-toolkit", version = "0.20", default-features = false, features = [ "calloop", "xkbcommon", ] } diff --git a/examples/clipboard.rs b/examples/clipboard.rs index b2fe60f..bbc98ce 100644 --- a/examples/clipboard.rs +++ b/examples/clipboard.rs @@ -265,6 +265,24 @@ impl CompositorHandler for SimpleWindow { ) { self.draw(conn, qh); } + + fn surface_enter( + &mut self, + _conn: &Connection, + _qh: &QueueHandle, + _surface: &wl_surface::WlSurface, + _output: &wl_output::WlOutput, + ) { + } + + fn surface_leave( + &mut self, + _conn: &Connection, + _qh: &QueueHandle, + _surface: &wl_surface::WlSurface, + _output: &wl_output::WlOutput, + ) { + } } impl OutputHandler for SimpleWindow { @@ -538,14 +556,25 @@ impl KeyboardHandler for SimpleWindow { ) { } + fn repeat_key( + &mut self, + _conn: &Connection, + _qh: &QueueHandle, + _keyboard: &wl_keyboard::WlKeyboard, + _serial: u32, + _event: KeyEvent, + ) { + } + fn update_modifiers( &mut self, - _: &Connection, - _: &QueueHandle, - _: &wl_keyboard::WlKeyboard, + _conn: &Connection, + _qh: &QueueHandle, + _keyboard: &wl_keyboard::WlKeyboard, _serial: u32, _modifiers: Modifiers, - _: u32, + _raw_modifiers: sctk::seat::keyboard::RawModifiers, + _layout: u32, ) { } }