wayland: Stop key repeat on focus out

This should address the occasional 'key repeat gone wild' issue
that some people have been seeing in gnome-terminal under Wayland.

http://bugzilla.gnome.org/show_bug.cgi?id=747684
This commit is contained in:
Matthias Clasen 2015-08-31 11:04:10 -04:00
parent 77b506e22a
commit 690a11b5b8

View File

@ -1184,6 +1184,8 @@ keyboard_handle_leave (void *data,
if (!device->keyboard_focus)
return;
stop_key_repeat (device);
_gdk_wayland_display_update_serial (display, serial);
event = gdk_event_new (GDK_FOCUS_CHANGE);