forge
Explore
Log in

Don't you dare go Hollow

input: Add missing redraws on urgency actions

Browse files at this commit

71251a700308fbdb719e697b633f5a0483cd3f12Ivan MolodetskikhParent: 2415346
The layout urgent colors update even without window rule changes.
src/input/mod.rsmodified+3 -0
@@ -1986,6 +1986,7 @@ impl State {
1986 let urgent = window.is_urgent();1986 let urgent = window.is_urgent();
1987 window.set_urgent(!urgent);1987 window.set_urgent(!urgent);
1988 }1988 }
1989+ self.niri.queue_redraw_all();
1989 }1990 }
1990 Action::SetUrgent(id) => {1991 Action::SetUrgent(id) => {
1991 let window = self1992 let window = self
@@ -1996,6 +1997,7 @@ impl State {
1996 if let Some(window) = window {1997 if let Some(window) = window {
1997 window.set_urgent(true);1998 window.set_urgent(true);
1998 }1999 }
2000+ self.niri.queue_redraw_all();
1999 }2001 }
2000 Action::UnsetUrgent(id) => {2002 Action::UnsetUrgent(id) => {
2001 let window = self2003 let window = self
@@ -2006,6 +2008,7 @@ impl State {
2006 if let Some(window) = window {2008 if let Some(window) = window {
2007 window.set_urgent(false);2009 window.set_urgent(false);
2008 }2010 }
2011+ self.niri.queue_redraw_all();
2009 }2012 }
2010 }2013 }
2011 }2014 }