aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-15 12:03:10 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-15 12:03:10 +0400
commit8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64 (patch)
treedecbe27ed43dec953675d4083350b19a260e1db7 /src/input.rs
parente89966e1507ef6f10fb30e9973d3a742d10f96c0 (diff)
downloadniri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.tar.gz
niri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.tar.bz2
niri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.zip
Update focus in one place
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/input.rs b/src/input.rs
index ec25b22c..d500c21e 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -179,53 +179,43 @@ impl Niri {
}
Action::FocusLeft => {
self.monitor_set.focus_left();
- self.update_focus();
}
Action::FocusRight => {
self.monitor_set.focus_right();
- self.update_focus();
}
Action::FocusDown => {
self.monitor_set.focus_down();
- self.update_focus();
}
Action::FocusUp => {
self.monitor_set.focus_up();
- self.update_focus();
}
Action::MoveToWorkspaceDown => {
self.monitor_set.move_to_workspace_down();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
Action::MoveToWorkspaceUp => {
self.monitor_set.move_to_workspace_up();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
Action::SwitchWorkspaceDown => {
self.monitor_set.switch_workspace_down();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
Action::SwitchWorkspaceUp => {
self.monitor_set.switch_workspace_up();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
Action::ConsumeIntoColumn => {
self.monitor_set.consume_into_column();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
Action::ExpelFromColumn => {
self.monitor_set.expel_from_column();
- self.update_focus();
// FIXME: granular
self.queue_redraw_all();
}
@@ -333,8 +323,6 @@ impl Niri {
let output = self.output_under_cursor().unwrap();
self.monitor_set.activate_output(&output);
}
-
- self.update_focus();
};
pointer.button(