xdg: do not focus unmapped popup on grab
Browse files at this commit2f17a30157614cb0222ada09e5d7b64fd4591f45Parent: 0dbd14e1 changed file +0 -1
src/handlers/xdg_shell.rsmodified+0 -1
| @@ -374,7 +374,6 @@ impl XdgShellHandler for State { | |||
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | trace!("new grab for root {:?}", root); | 376 | trace!("new grab for root {:?}", root); |
| 377 | - keyboard.set_focus(self, grab.current_grab(), serial); | ||
| 378 | keyboard.set_grab(self, PopupKeyboardGrab::new(&grab), serial); | 377 | keyboard.set_grab(self, PopupKeyboardGrab::new(&grab), serial); |
| 379 | pointer.set_grab(self, PopupPointerGrab::new(&grab), serial, Focus::Keep); | 378 | pointer.set_grab(self, PopupPointerGrab::new(&grab), serial, Focus::Keep); |
| 380 | self.niri.popup_grab = Some(PopupGrabState { root, grab }); | 379 | self.niri.popup_grab = Some(PopupGrabState { root, grab }); |