mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
input: Add missing redraws on urgency actions
The layout urgent colors update even without window rule changes.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user