diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-10 22:48:11 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-10 22:49:55 +0300 |
| commit | a2efaf2816f14ea437d88bc6b9253b1e347c4cee (patch) | |
| tree | 840c4776a4a0a4e55e3b4c8057e4aa59c75e956b /src/window/mod.rs | |
| parent | 58166914607025ae9fb20d868138238bebd4c6bc (diff) | |
| download | niri-a2efaf2816f14ea437d88bc6b9253b1e347c4cee.tar.gz niri-a2efaf2816f14ea437d88bc6b9253b1e347c4cee.tar.bz2 niri-a2efaf2816f14ea437d88bc6b9253b1e347c4cee.zip | |
Add is-urgent window rule matcher
Diffstat (limited to 'src/window/mod.rs')
| -rw-r--r-- | src/window/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs index 71aa607b..0b94d04d 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -440,6 +440,12 @@ fn window_matches(window: WindowRef, role: &XdgToplevelSurfaceRoleAttributes, m: } } + if let Some(is_urgent) = m.is_urgent { + if window.is_urgent() != is_urgent { + return false; + } + } + if let Some(is_active) = m.is_active { // Our "is-active" definition corresponds to the window having a pending Activated state. let pending_activated = server_pending |
