input: Add missing redraws on urgency actions

The layout urgent colors update even without window rule changes.
This commit is contained in:
Ivan Molodetskikh
2025-05-21 19:49:47 +03:00
parent 2415346caa
commit 71251a7003
+3
View File
@@ -1986,6 +1986,7 @@ impl State {
let urgent = window.is_urgent(); let urgent = window.is_urgent();
window.set_urgent(!urgent); window.set_urgent(!urgent);
} }
self.niri.queue_redraw_all();
} }
Action::SetUrgent(id) => { Action::SetUrgent(id) => {
let window = self let window = self
@@ -1996,6 +1997,7 @@ impl State {
if let Some(window) = window { if let Some(window) = window {
window.set_urgent(true); window.set_urgent(true);
} }
self.niri.queue_redraw_all();
} }
Action::UnsetUrgent(id) => { Action::UnsetUrgent(id) => {
let window = self let window = self
@@ -2006,6 +2008,7 @@ impl State {
if let Some(window) = window { if let Some(window) = window {
window.set_urgent(false); window.set_urgent(false);
} }
self.niri.queue_redraw_all();
} }
} }
} }