diff --git a/src/backend/winit.rs b/src/backend/winit.rs index da7f491..1250d8c 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -12,10 +12,7 @@ use smithay::{ }, winit::{WinitEvent, WinitGraphicsBackend}, }, - desktop::{ - layer_map_for_output, - utils::{send_frames_surface_tree, surface_primary_scanout_output}, - }, + desktop::{layer_map_for_output, utils::send_frames_surface_tree}, input::pointer::CursorImageStatus, output::{Output, Subpixel}, reexports::{ @@ -23,10 +20,7 @@ use smithay::{ timer::{TimeoutAction, Timer}, EventLoop, }, - wayland_protocols::{ - wp::presentation_time::server::wp_presentation_feedback, - xdg::shell::server::xdg_toplevel, - }, + wayland_protocols::wp::presentation_time::server::wp_presentation_feedback, wayland_server::{protocol::wl_surface::WlSurface, Display}, winit::platform::pump_events::PumpStatus, }, @@ -36,8 +30,7 @@ use smithay::{ use crate::{ render::{pointer::PointerElement, take_presentation_feedback}, - state::{CalloopData, State, WithState}, - window::WindowElement, + state::{CalloopData, State}, }; use super::{Backend, BackendData}; diff --git a/src/window.rs b/src/window.rs index 9a601ad..54f9330 100644 --- a/src/window.rs +++ b/src/window.rs @@ -3,7 +3,7 @@ pub mod blocker; pub mod rules; -use std::{cell::RefCell, sync::atomic::AtomicU32, time::Duration}; +use std::{cell::RefCell, time::Duration}; use smithay::{ backend::input::KeyState, diff --git a/src/window/blocker.rs b/src/window/blocker.rs index a44c5b9..550edb1 100644 --- a/src/window/blocker.rs +++ b/src/window/blocker.rs @@ -51,7 +51,7 @@ impl TiledWindowBlocker { .unwrap_or(false) }) } - WindowElement::X11(_) => true, + WindowElement::X11(_) | WindowElement::X11OverrideRedirect(_) => true, }); tracing::debug!(