mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Warp mouse only if layout is focused
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user