GDK W32: Ignore autorepeated key presses on modifier keys
The X11 backend does not send autorepeated messages for modifier keys, and doing so prevents motion compression from working. https://bugzilla.gnome.org/show_bug.cgi?id=771568
This commit is contained in:

committed by
Руслан Ижбулатов

parent
bfdac2f70e
commit
61162225f7
@ -2274,6 +2274,14 @@ gdk_event_translate (MSG *msg,
|
|||||||
in_ime_composition)
|
in_ime_composition)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* Ignore autorepeats on modifiers */
|
||||||
|
if (msg->message == WM_KEYDOWN &&
|
||||||
|
(msg->wParam == VK_MENU ||
|
||||||
|
msg->wParam == VK_CONTROL ||
|
||||||
|
msg->wParam == VK_SHIFT) &&
|
||||||
|
((HIWORD(msg->lParam) & KF_REPEAT) >= 1))
|
||||||
|
break;
|
||||||
|
|
||||||
if (!propagate (&window, msg,
|
if (!propagate (&window, msg,
|
||||||
_gdk_display->keyboard_grab.window,
|
_gdk_display->keyboard_grab.window,
|
||||||
_gdk_display->keyboard_grab.owner_events,
|
_gdk_display->keyboard_grab.owner_events,
|
||||||
|
Reference in New Issue
Block a user