wayland: Throttle system bell requests
authorJonas Ådahl <jadahl@gmail.com>
Mon, 13 Mar 2017 06:42:38 +0000 (14:42 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 20 Jul 2017 02:03:51 +0000 (10:03 +0800)
commit376ff1ae607db3e3ae47e8caeb8e8bce98c56f54
tree7af46995b2d96bd3d38273c0e451ba8828a894fe
parentf78585b7c35cbe07b5cf921a871d59299dcfa355
wayland: Throttle system bell requests

If a bad behaving application tries to make the window/display beep too
often, throttle the beep requests so that we don't end up filling the
Wayland socket queue.

The throttle is set to 50 beeps per second, which far more beeps than
will ever make any sense from a user experience point of view, but will
avoid terminating due to an excessive amount of requests.

https://bugzilla.gnome.org/show_bug.cgi?id=778188
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkdisplay-wayland.h