diff options
| author | Duncan Overbruck <mail@duncano.de> | 2025-03-21 17:48:47 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-10 12:14:41 -0700 |
| commit | caa6189448cbf338c18fe6afe313f577c8378b31 (patch) | |
| tree | 97ce7ecb2a94481639e0251c7ce1d3daf27e51cb /src/layout | |
| parent | 86f57c2ec775d4aa08bf310c94b22ea266eaa9e9 (diff) | |
| download | niri-caa6189448cbf338c18fe6afe313f577c8378b31.tar.gz niri-caa6189448cbf338c18fe6afe313f577c8378b31.tar.bz2 niri-caa6189448cbf338c18fe6afe313f577c8378b31.zip | |
add workspace urgency ipc event
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/workspace.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 6ae045f7..c6662214 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1608,6 +1608,10 @@ impl<W: LayoutElement> Workspace<W> { self.scrolling.scroll_amount_to_activate(window) } + pub fn is_urgent(&self) -> bool { + self.windows().any(|win| win.is_urgent()) + } + pub fn activate_window(&mut self, window: &W::Id) -> bool { if self.floating.activate_window(window) { self.floating_is_active = FloatingActive::Yes; |
