<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Input event (e. g. typing on keyboard) is sent repeatedly during high load"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=777693#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Input event (e. g. typing on keyboard) is sent repeatedly during high load"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=777693">bug 777693</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
        <pre>
Yes, possibly.

<span class="quote">> Key repeat discarded, Wayland compositor doesn't seem to be processing events
> fast enough!</span >

This message comes from Xwayland's patch to address this issue precisely:

<a href="https://cgit.freedesktop.org/xorg/xserver/commit/?id=239705a">https://cgit.freedesktop.org/xorg/xserver/commit/?id=239705a</a>

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:

<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - wayland: Switching between fullscreen and unfullscreen using F11 in google-chrome causes gnome-shell to hang"
   href="show_bug.cgi?id=762618#c11">https://bugzilla.gnome.org/show_bug.cgi?id=762618#c11</a>

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>