diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/window/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c index 00bcf57..72f8598 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -795,7 +795,7 @@ static mgl_mouse_button x11_button_to_mgl_button(unsigned int button) { static void mgl_window_handle_key_event(mgl_window *self, XKeyEvent *xkey, mgl_event *event, mgl_context *context) { event->key.code = x11_keysym_to_mgl_key(XKeycodeToKeysym(context->connection, xkey->keycode, 0)); - event->key.alt = ((xkey->state & Mod1Mask) != 0); + event->key.alt = ((xkey->state & Mod1Mask) != 0) || ((xkey->state & Mod5Mask) != 0); event->key.control = ((xkey->state & ControlMask) != 0); event->key.shift = ((xkey->state & ShiftMask) != 0); event->key.system = ((xkey->state & Mod4Mask) != 0); |