Clear on-demand layer-shell focus in more cases

This commit is contained in:
Ivan Molodetskikh
2025-01-03 16:59:53 +03:00
parent 152ed59502
commit a5f3b2a949
3 changed files with 32 additions and 0 deletions
+2
View File
@@ -201,7 +201,9 @@ impl CompositorHandler for State {
let new_focus = self.niri.layout.focus().map(|m| &m.window);
if new_focus == Some(&window) {
// We activated the newly opened window.
self.maybe_warp_cursor_to_focus();
self.niri.layer_shell_on_demand_focus = None;
}
self.niri.queue_redraw(&output);