mirror of
https://github.com/YaLTeR/niri.git
synced 2024-10-26 20:04:05 +03:00
Warp mouse only if layout is focused
This commit is contained in:
parent
abd99f9806
commit
1b2a099cdc
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user