Warp mouse only if layout is focused

This commit is contained in:
Ivan Molodetskikh 2024-03-17 09:23:32 +04:00
parent abd99f9806
commit 1b2a099cdc

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;
};