diff --git a/Cargo.toml b/Cargo.toml index 2065a05..6e0ff6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,9 @@ rust-version = "1.65.0" [dependencies] libc = "0.2.149" -sctk = { package = "smithay-client-toolkit", git = "https://github.com/Smithay/client-toolkit", default-features = false, features = [ +sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [ "calloop", -], rev = "3bed072" } +] } wayland-backend = { version = "0.3.3", default_features = false, features = [ "client_system", ] } @@ -25,10 +25,10 @@ raw-window-handle = { version = "0.6", optional = true } [dev-dependencies] dirs = "5.0.1" -sctk = { package = "smithay-client-toolkit", git = "https://github.com/Smithay/client-toolkit", default-features = false, features = [ +sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [ "calloop", "xkbcommon", -], rev = "3bed072" } +] } thiserror = "1.0.57" url = "2.5.0" diff --git a/src/state.rs b/src/state.rs index 65f1a43..afa2adb 100644 --- a/src/state.rs +++ b/src/state.rs @@ -16,6 +16,7 @@ use sctk::output::{OutputHandler, OutputState}; use sctk::primary_selection::device::{PrimarySelectionDevice, PrimarySelectionDeviceHandler}; use sctk::primary_selection::selection::{PrimarySelectionSource, PrimarySelectionSourceHandler}; use sctk::primary_selection::PrimarySelectionManagerState; +use sctk::reexports::client::protocol::wl_output::WlOutput; use sctk::reexports::client::protocol::wl_surface::WlSurface; use sctk::registry::{ProvidesRegistryState, RegistryState}; use sctk::seat::pointer::{PointerData, PointerEvent, PointerEventKind, PointerHandler}; @@ -668,6 +669,24 @@ impl CompositorHandler for State { _time: u32, ) { } + + fn surface_enter( + &mut self, + _: &Connection, + _: &QueueHandle, + _: &WlSurface, + _: &WlOutput, + ) { + } + + fn surface_leave( + &mut self, + _: &Connection, + _: &QueueHandle, + _: &WlSurface, + _: &WlOutput, + ) { + } } impl OutputHandler for State {