Simplify key round-tripping to IBUS

Only send to IBUS after full xkb processing. This is needed as otherwise
modifier state tracking does not work reliably. If you use alt+tab to
switch away from the window, the window never receives the release event
for the alt modifier.

The downside is that now if the uer has both XCompose and ibus active,
the who knows what will happen.
This commit is contained in:
Kovid Goyal
2018-07-11 17:32:19 +05:30
parent 38998a4869
commit b2e300c440
3 changed files with 40 additions and 59 deletions

2
glfw/ibus_glfw.h vendored
View File

@@ -43,6 +43,8 @@ typedef struct {
unsigned int glfw_modifiers;
int action;
GLFWid window_id;
int glfw_keycode;
char text[64];
} KeyEvent;
void glfw_connect_to_ibus(_GLFWIBUSData *ibus);