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:
Christian Meissl
2024-11-24 20:09:57 +01:00
committed by Ivan Molodetskikh
parent 0dbd14ebdc
commit 2f17a30157
-1
View File
@@ -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 });