Fixed dead keys in X11.

The library will now try to create an X input context to handle dead
keys properly on international keyboards.  This makes it possible to
enter for example an e with accent grave on a German keyboard without
further efforts.  A fallback mechanism is provided in case the client
does not support X input method / context creation.  In that case, the
library will behave as it did before.
This commit is contained in:
Lucas Hinderberger
2013-10-06 21:19:38 +02:00
committed by Camilla Berglund
parent 49579165a7
commit cec63f3cb5
3 changed files with 120 additions and 9 deletions
+5
View File
@@ -90,6 +90,8 @@ typedef struct _GLFWwindowX11
// The last position the cursor was warped to by GLFW
int warpPosX, warpPosY;
// The window's input context
XIC ic;
} _GLFWwindowX11;
@@ -202,6 +204,9 @@ typedef struct _GLFWlibraryX11
Window source;
} xdnd;
// Input method and context
XIM im;
} _GLFWlibraryX11;