From af1fca35bb15b8010cd3a12bbafe71b55d9ecf57 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 25 Apr 2025 09:36:50 +0300 Subject: Implement an Overview --- src/handlers/xdg_shell.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/handlers') diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index e06d1fca..4dfce86d 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -153,7 +153,7 @@ impl XdgShellHandler for State { match start_data { PointerOrTouchStartData::Pointer(start_data) => { - let grab = MoveGrab::new(start_data, window); + let grab = MoveGrab::new(start_data, window, false); pointer.set_grab(self, grab, serial, Focus::Clear); } PointerOrTouchStartData::Touch(start_data) => { @@ -316,6 +316,9 @@ impl XdgShellHandler for State { } else if let Some(output) = self.niri.layout.active_output() { let layers = layer_map_for_output(output); + // FIXME: somewhere here we probably need to check is_overview_open to match the logic + // in update_keyboard_focus(). + if layers .layer_for_surface(&root, WindowSurfaceType::TOPLEVEL) .is_none() -- cgit