diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-07-20 21:46:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 21:46:56 -0400 |
commit | 51730a059778e1d91e2f4b412f39e77a66f48155 (patch) | |
tree | 1d043b7551e251f1b662e952e9f62be72877a7cc /sway/desktop/xwayland.c | |
parent | a2b2146f7fb8d5e868880daff9484145a68ab4a3 (diff) | |
parent | 37b33f92e8cd94984c4e3c8c851f5dfdacbe14f5 (diff) |
Merge pull request #2317 from RyanDwyer/force-display-urgency-hint
Implement force_display_urgency_hint
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 6 |
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); } |