mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
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
This commit is contained in:
committed by
Ivan Molodetskikh
parent
0dbd14ebdc
commit
2f17a30157
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user