aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-05-11 19:17:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-05-11 19:17:52 +0000
commit200c5cbc7913f3c9aca45792669c7ede2d087a47 (patch)
tree965a52f93cbfdd1533519c9a6d5e4668a0acd1e7 /wayland.h
parentterminal: move viewport when part of it is scrolled out (diff)
wayland: throttle xdg activation token requests for window urgency
When XDG activation support was added to URL mode, we introduced a regression, where it is possible to flood the Wayland socket with XDG activation token requests. Start foot with “foot -o bell.urgency=yes”, then run: while true; do echo -en ‘\a’; done Finally, switch keyboard focus to another window. Foot crashes. Throttle the token requests by limiting the number of outstanding urgency token requests to 1. Closes #1065
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 8f59eb98..daa3e65d 100644
--- a/wayland.h
+++ b/wayland.h
@@ -319,6 +319,7 @@ struct wl_window {
struct xdg_toplevel *xdg_toplevel;
#if defined(HAVE_XDG_ACTIVATION)
tll(struct xdg_activation_token_context *) xdg_tokens;
+ bool urgency_token_is_pending;
#endif
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;