From d39f1897c7c28d262ff574d43891175958d675c8 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 12 Jan 2024 08:48:22 +0400 Subject: Force redraws on window activation Activating a window does not necessarily make it commit a buffer and update the screen for us. --- src/input.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 1829d413..f003ad72 100644 --- a/src/input.rs +++ b/src/input.rs @@ -796,8 +796,14 @@ impl State { if let Some(window) = self.niri.window_under_cursor() { let window = window.clone(); self.niri.layout.activate_window(&window); + + // FIXME: granular. + self.niri.queue_redraw_all(); } else if let Some(output) = self.niri.output_under_cursor() { self.niri.layout.activate_output(&output); + + // FIXME: granular. + self.niri.queue_redraw_all(); } }; -- cgit