From 86f57c2ec775d4aa08bf310c94b22ea266eaa9e9 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Fri, 21 Mar 2025 17:31:27 +0100 Subject: 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 --- src/layout/mod.rs | 2 ++ src/layout/tests.rs | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'src/layout') 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); 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 { None } + + fn is_urgent(&self) -> bool { + false + } } fn arbitrary_bbox() -> impl Strategy> { -- cgit