Warp mouse only if layout is focused

This commit is contained in:
Ivan Molodetskikh
2024-03-17 09:23:32 +04:00
parent 118773e17d
commit 2984722f80
+4
View File
@@ -475,6 +475,10 @@ impl State {
}
pub fn move_cursor_to_focused_tile(&mut self, mode: CenterCoords) -> bool {
if !self.niri.keyboard_focus.is_layout() {
return false;
}
let Some(output) = self.niri.layout.active_output() else {
return false;
};