diff --git a/examples/window_drag_resize.rs b/examples/window_drag_resize.rs index 84dae6e0..277e7d4c 100644 --- a/examples/window_drag_resize.rs +++ b/examples/window_drag_resize.rs @@ -52,6 +52,8 @@ fn main() { } => { if let Some(dir) = cursor_location { let _res = window.drag_resize_window(dir); + } else if !window.is_decorated() { + let _res = window.drag_window(); } } WindowEvent::KeyboardInput { diff --git a/src/platform_impl/linux/wayland/window/state.rs b/src/platform_impl/linux/wayland/window/state.rs index d9da53db..479413e6 100644 --- a/src/platform_impl/linux/wayland/window/state.rs +++ b/src/platform_impl/linux/wayland/window/state.rs @@ -384,7 +384,7 @@ impl WindowState { .map(|configure| configure.decoration_mode == DecorationMode::Client) .unwrap_or(false); if let Some(frame) = csd.then_some(self.frame.as_ref()).flatten() { - frame.is_hidden() + !frame.is_hidden() } else { // Server side decorations. true