diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-12 08:48:22 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-12 08:48:22 +0400 |
| commit | d39f1897c7c28d262ff574d43891175958d675c8 (patch) | |
| tree | 259c9f04bbb148ca8bbaab5905dbdf779a659e7d /src | |
| parent | e46b614c2bf08dd7b09ca8a84321f2c066855aaa (diff) | |
| download | niri-d39f1897c7c28d262ff574d43891175958d675c8.tar.gz niri-d39f1897c7c28d262ff574d43891175958d675c8.tar.bz2 niri-d39f1897c7c28d262ff574d43891175958d675c8.zip | |
Force redraws on window activation
Activating a window does not necessarily make it commit a buffer and
update the screen for us.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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(); } }; |
