[Wayland-bugs] [Bug 777693] Input event (e. g. typing on keyboard) is sent repeatedly during high load
gnome-shell (GNOME Bugzilla)
bugzilla at gnome.org
Mon Feb 13 07:59:34 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=777693
--- Comment #10 from Olivier Fourdan <ofourdan at redhat.com> ---
Yes, possibly.
> Key repeat discarded, Wayland compositor doesn't seem to be processing events
> fast enough!
This message comes from Xwayland's patch to address this issue precisely:
https://cgit.freedesktop.org/xorg/xserver/commit/?id=239705a
In Wayland, the clients implement key repeats (unlikle X11 where the Xserver
implements key repeats), but the actual key press/release come from the Wayland
compositor that needs to process these first and notify the clients.
What happens in this case is the Wayland compositor mutter/gnome-shell is busy
playing an animation and doesn't process the key events fast enough, and the
client (Xwayland) is not notified the key was released, and starts repeating
the last known key press.
To avoid this behavior, Xwayland will "ping" the Wayland compositor prior to
repeating the key press, and if it doesn't get a reply from the compositor will
assume it's too busy and will print this message instead of issuing the key
repeat.
The fact that this occurs when playing an animation was discusses here:
https://bugzilla.gnome.org/show_bug.cgi?id=762618#c11
But the message from Xwayland shows that the mechanism is working (in Xwayland)
and prevents the key repeat from occurring when the compositor is not
processing events.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170213/86ff1a74/attachment.html>
More information about the wayland-bugs
mailing list