diff options
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/xdg_shell.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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() |
