atagen

monolith

public
Star0
Watch0

Commit 3215aa6779fc

tarball

atagen <boss@atagen.co>2026-10-22 06:01 UTC

1 file changed+7-0
xwayland: mark a window urgent when it sets the urgency hint

X11 clients flag themselves through the ICCCM urgency bit in WM_HINTS, which terminals set on a bell and chat clients on a message. property_notify ignored WmWindowProperty::Hints, so those windows never got the urgent border or lit their tag.
Modified file: crates/monolith/src/xwayland.rs+7 additions
@@ -506,6 +506,13 @@ impl XwmHandler for State {
506506 {
507507 self.refresh_identity(id);
508508 }
509+ if property == WmWindowProperty::Hints
510+ && window.hints().is_some_and(|h| h.urgent)
511+ && let Some(id) = self.x11_window_id(&window)
512+ {
513+ self.wm.layout.mark_urgent(id);
514+ self.apply_layout();
515+ }
509516 }
510517
511518 fn modal_request(&mut self, _xwm: XwmId, window: X11Surface) {