update sctk

This commit is contained in:
Ashley Wulber 2026-03-02 11:33:13 -05:00
parent 5a3007def4
commit 859b02c88f
2 changed files with 35 additions and 6 deletions

View file

@ -15,7 +15,7 @@ rust-version = "1.65.0"
[dependencies] [dependencies]
libc = "0.2.149" 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", "calloop",
] } ] }
wayland-backend = { version = "0.3.3", default_features = false, features = [ wayland-backend = { version = "0.3.3", default_features = false, features = [
@ -25,7 +25,7 @@ raw-window-handle = { version = "0.6", optional = true }
[dev-dependencies] [dev-dependencies]
dirs = "5.0.1" 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", "calloop",
"xkbcommon", "xkbcommon",
] } ] }

View file

@ -265,6 +265,24 @@ impl CompositorHandler for SimpleWindow {
) { ) {
self.draw(conn, qh); self.draw(conn, qh);
} }
fn surface_enter(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &wl_surface::WlSurface,
_output: &wl_output::WlOutput,
) {
}
fn surface_leave(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &wl_surface::WlSurface,
_output: &wl_output::WlOutput,
) {
}
} }
impl OutputHandler for SimpleWindow { impl OutputHandler for SimpleWindow {
@ -538,14 +556,25 @@ impl KeyboardHandler for SimpleWindow {
) { ) {
} }
fn repeat_key(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &wl_keyboard::WlKeyboard,
_serial: u32,
_event: KeyEvent,
) {
}
fn update_modifiers( fn update_modifiers(
&mut self, &mut self,
_: &Connection, _conn: &Connection,
_: &QueueHandle<Self>, _qh: &QueueHandle<Self>,
_: &wl_keyboard::WlKeyboard, _keyboard: &wl_keyboard::WlKeyboard,
_serial: u32, _serial: u32,
_modifiers: Modifiers, _modifiers: Modifiers,
_: u32, _raw_modifiers: sctk::seat::keyboard::RawModifiers,
_layout: u32,
) { ) {
} }
} }