From 2f17a30157614cb0222ada09e5d7b64fd4591f45 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sun, 24 Nov 2024 20:09:57 +0100 Subject: xdg: do not focus unmapped popup on grab a grab is requested for an unmapped popup, delay focusing the popup until the first keyboard interaction --- src/handlers/xdg_shell.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index e6167b0a..2c9f5daf 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -374,7 +374,6 @@ impl XdgShellHandler for State { } trace!("new grab for root {:?}", root); - keyboard.set_focus(self, grab.current_grab(), serial); keyboard.set_grab(self, PopupKeyboardGrab::new(&grab), serial); pointer.set_grab(self, PopupPointerGrab::new(&grab), serial, Focus::Keep); self.niri.popup_grab = Some(PopupGrabState { root, grab }); -- cgit