diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-15 12:03:10 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-15 12:03:10 +0400 |
| commit | 8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64 (patch) | |
| tree | decbe27ed43dec953675d4083350b19a260e1db7 /src/handlers | |
| parent | e89966e1507ef6f10fb30e9973d3a742d10f96c0 (diff) | |
| download | niri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.tar.gz niri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.tar.bz2 niri-8cdd37b9932eb4acd8e983af53d0ba7bb04a3e64.zip | |
Update focus in one place
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/compositor.rs | 4 | ||||
| -rw-r--r-- | src/handlers/xdg_shell.rs | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs index 7a8612e8..8b0f032b 100644 --- a/src/handlers/compositor.rs +++ b/src/handlers/compositor.rs @@ -55,8 +55,6 @@ impl CompositorHandler for Niri { let output = self.monitor_set.active_output().unwrap().clone(); self.monitor_set.add_window_to_output(&output, window, true); - self.update_focus(); - self.queue_redraw(output); return; } @@ -80,8 +78,6 @@ impl CompositorHandler for Niri { // The toplevel got unmapped. self.monitor_set.remove_window(&window); self.unmapped_windows.insert(surface.clone(), window); - self.update_focus(); - self.queue_redraw(output); return; } diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index 00413451..59d21693 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -241,7 +241,6 @@ impl XdgShellHandler for Niri { .find_window_and_output(surface.wl_surface()) .unwrap(); self.monitor_set.remove_window(&window); - self.update_focus(); self.queue_redraw(output); } |
