aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 72dc7ca2..bce0a37b 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -442,6 +442,12 @@ static void handle_set_hints(struct wl_listener *listener, void *data) {
if (!xsurface->mapped) {
return;
}
+ if (!xsurface->hints_urgency && view->urgent_timer) {
+ // The view is is in the timeout period. We'll ignore the request to
+ // unset urgency so that the view remains urgent until the timer clears
+ // it.
+ return;
+ }
if (view->allow_request_urgent) {
view_set_urgent(view, (bool)xsurface->hints_urgency);
}