GHOST/X11: Xinput/XIM support caused double key-up

All keyboard events were sending double key events (including modifiers)
when xinput was enabled with gnome (causing much confusion!).

I cant test if XIM works,
but this isn't useful to send double events, so disabling for now.
This commit is contained in:
Campbell Barton
2018-06-07 20:32:51 +02:00
parent 80dcb2ced8
commit cfc1ddeff7

View File

@@ -571,10 +571,8 @@ processEvents(
}
/* dispatch event to XIM server */
if ((XFilterEvent(&xevent, (Window)NULL) == True) && (xevent.type != KeyRelease)) {
/* do nothing now, the event is consumed by XIM.
* however, KeyRelease event should be processed
* here, otherwise modifiers remain activated. */
if ((XFilterEvent(&xevent, (Window)NULL) == True)) {
/* do nothing now, the event is consumed by XIM. */
continue;
}
#endif