aboutsummaryrefslogtreecommitdiff
path: root/src/mgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgl.c')
-rw-r--r--src/mgl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mgl.c b/src/mgl.c
index 63512ef..3b5adf2 100644
--- a/src/mgl.c
+++ b/src/mgl.c
@@ -67,6 +67,8 @@ int mgl_init(void) {
return -1;
}
connected_to_x_server = true;
+ /* If we dont call we will never get a MappingNotify until a key has been pressed */
+ XKeysymToKeycode(context.connection, XK_F1);
prev_xerror = XSetErrorHandler(mgl_x_error_handler);
prev_xioerror = XSetIOErrorHandler(mgl_x_io_error_handler);