diff options
| author | Christian Meissl <meissl.christian@gmail.com> | 2024-11-24 20:09:57 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-02 14:24:39 +0300 |
| commit | 2f17a30157614cb0222ada09e5d7b64fd4591f45 (patch) | |
| tree | 83d5e297b003a4ce017d838ec1e69d0d09627cfa | |
| parent | 0dbd14ebdc5299936c6dfa3c94edce5cc805a808 (diff) | |
| download | niri-2f17a30157614cb0222ada09e5d7b64fd4591f45.tar.gz niri-2f17a30157614cb0222ada09e5d7b64fd4591f45.tar.bz2 niri-2f17a30157614cb0222ada09e5d7b64fd4591f45.zip | |
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
| -rw-r--r-- | src/handlers/xdg_shell.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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 }); |
