aboutsummaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2025-03-21 17:31:27 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-10 12:14:41 -0700
commit86f57c2ec775d4aa08bf310c94b22ea266eaa9e9 (patch)
tree1f5a81c4ffaec502cff856d2eb52a19e37f77bc4 /src/layout
parent3cc67897afeabe6e0b1a6d035fde6f81010372d1 (diff)
downloadniri-86f57c2ec775d4aa08bf310c94b22ea266eaa9e9.tar.gz
niri-86f57c2ec775d4aa08bf310c94b22ea266eaa9e9.tar.bz2
niri-86f57c2ec775d4aa08bf310c94b22ea266eaa9e9.zip
add window urgency through xdg-activation-v1
urgency is done through activation requests without a serial from a previous interaction. https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/150
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/mod.rs2
-rw-r--r--src/layout/tests.rs4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index d42f05a5..b2726bef 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -210,6 +210,8 @@ pub trait LayoutElement {
fn set_bounds(&self, bounds: Size<i32, Logical>);
fn is_ignoring_opacity_window_rule(&self) -> bool;
+ fn is_urgent(&self) -> bool;
+
fn configure_intent(&self) -> ConfigureIntent;
fn send_pending_configure(&mut self);
diff --git a/src/layout/tests.rs b/src/layout/tests.rs
index 4ac5aaf7..a02d1120 100644
--- a/src/layout/tests.rs
+++ b/src/layout/tests.rs
@@ -261,6 +261,10 @@ impl LayoutElement for TestWindow {
fn interactive_resize_data(&self) -> Option<InteractiveResizeData> {
None
}
+
+ fn is_urgent(&self) -> bool {
+ false
+ }
}
fn arbitrary_bbox() -> impl Strategy<Value = Rectangle<i32, Logical>> {