Last active
May 29, 2017 19:01
-
-
Save mattn/c2dacb314f6f9ea0275f to your computer and use it in GitHub Desktop.
patch to enable XIM on glfw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/v3.1/glfw/glfw/src/x11_window.c b/v3.1/glfw/glfw/src/x11_window.c | |
index 0380b58..560f730 100644 | |
--- a/v3.1/glfw/glfw/src/x11_window.c | |
+++ b/v3.1/glfw/glfw/src/x11_window.c | |
@@ -912,12 +912,6 @@ static void processEvent(XEvent *event) | |
Status status; | |
wchar_t buffer[16]; | |
- if (XFilterEvent(event, None)) | |
- { | |
- // Discard intermediary (dead key) events for character input | |
- break; | |
- } | |
- | |
const int count = XwcLookupString(window->x11.ic, | |
&event->xkey, | |
buffer, sizeof(buffer), | |
@@ -1693,6 +1687,11 @@ void _glfwPlatformPollEvents(void) | |
{ | |
XEvent event; | |
XNextEvent(_glfw.x11.display, &event); | |
+ if (XFilterEvent(&event, None)) | |
+ { | |
+ continue; | |
+ } | |
+ | |
processEvent(&event); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment