forge
Explore
Log in

Don't you dare go Hollow

xdg: do not focus unmapped popup on grab

Browse files at this commit

2f17a30157614cb0222ada09e5d7b64fd4591f45Christian MeisslParent: 0dbd14e
a grab is requested for an unmapped popup,
delay focusing the popup until the first keyboard
interaction
src/handlers/xdg_shell.rsmodified+0 -1
@@ -374,7 +374,6 @@ impl XdgShellHandler for State {
374374 }
375375
376376 trace!("new grab for root {:?}", root);
377- keyboard.set_focus(self, grab.current_grab(), serial);
378377 keyboard.set_grab(self, PopupKeyboardGrab::new(&grab), serial);
379378 pointer.set_grab(self, PopupPointerGrab::new(&grab), serial, Focus::Keep);
380379 self.niri.popup_grab = Some(PopupGrabState { root, grab });