From efb188e50eea90677b9abe7f0239aaf052c5f160 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 16 Jul 2024 12:58:03 +0300 Subject: [PATCH] wayland: bump dependencies Update SCTK as a follow-up to 1170554dbdb (ignore events to dead objects) fixing it for wl_output. --- Cargo.toml | 14 +++++++------- deny.toml | 1 - src/platform_impl/linux/wayland/state.rs | 20 +++++++++++++++++++- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 621a458efe..8ed5f8bc59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -239,7 +239,7 @@ features = [ [target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies] ahash = { version = "0.8.7", features = ["no-rng"], optional = true } bytemuck = { version = "1.13.1", default-features = false, optional = true } -calloop = "0.12.3" +calloop = "0.13.0" libc = "0.2.64" memmap2 = { version = "0.9.0", optional = true } percent-encoding = { version = "2.0", optional = true } @@ -249,18 +249,18 @@ rustix = { version = "0.38.4", default-features = false, features = [ "thread", "process", ] } -sctk = { package = "smithay-client-toolkit", version = "0.18.0", default-features = false, features = [ +sctk = { package = "smithay-client-toolkit", version = "0.19.2", default-features = false, features = [ "calloop", ], optional = true } -sctk-adwaita = { version = "0.9.0", default-features = false, optional = true } -wayland-backend = { version = "0.3.0", default-features = false, features = [ +sctk-adwaita = { version = "0.10.1", default-features = false, optional = true } +wayland-backend = { version = "0.3.5", default-features = false, features = [ "client_system", ], optional = true } -wayland-client = { version = "0.31.1", optional = true } -wayland-protocols = { version = "0.31.0", features = [ +wayland-client = { version = "0.31.4", optional = true } +wayland-protocols = { version = "0.32.2", features = [ "staging", ], optional = true } -wayland-protocols-plasma = { version = "0.2.0", features = [ +wayland-protocols-plasma = { version = "0.3.2", features = [ "client", ], optional = true } x11-dl = { version = "2.19.1", optional = true } diff --git a/deny.toml b/deny.toml index 317542b864..27fe32cd01 100644 --- a/deny.toml +++ b/deny.toml @@ -33,7 +33,6 @@ deny = [] skip = [ { name = "raw-window-handle" }, # we intentionally have multiple versions of this { name = "bitflags" }, # the ecosystem is in the process of migrating. - { name = "libloading" }, # x11rb uses a different version until the next update ] skip-tree = [] diff --git a/src/platform_impl/linux/wayland/state.rs b/src/platform_impl/linux/wayland/state.rs index 8c021bb9fd..13ef99c26a 100644 --- a/src/platform_impl/linux/wayland/state.rs +++ b/src/platform_impl/linux/wayland/state.rs @@ -339,12 +339,30 @@ impl CompositorHandler for WinitState { &mut self, _: &Connection, _: &QueueHandle, - _: &wayland_client::protocol::wl_surface::WlSurface, + _: &WlSurface, _: wayland_client::protocol::wl_output::Transform, ) { // TODO(kchibisov) we need to expose it somehow in winit. } + fn surface_enter( + &mut self, + _: &Connection, + _: &QueueHandle, + _: &WlSurface, + _: &WlOutput, + ) { + } + + fn surface_leave( + &mut self, + _: &Connection, + _: &QueueHandle, + _: &WlSurface, + _: &WlOutput, + ) { + } + fn scale_factor_changed( &mut self, _: &Connection,