Skip to content

Commit

Permalink
Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottatop committed Dec 19, 2023
1 parent 59c3307 commit 4dbf1a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions src/backend/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,15 @@ 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::{
calloop::{
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,
},
Expand All @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/window/blocker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl TiledWindowBlocker {
.unwrap_or(false)
})
}
WindowElement::X11(_) => true,
WindowElement::X11(_) | WindowElement::X11OverrideRedirect(_) => true,
});

tracing::debug!(
Expand Down

0 comments on commit 4dbf1a3

Please sign in to comment.