diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-09-11 10:29:28 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-09-11 10:29:32 +0200 |
commit | b756fb4fa5ed540ea37139d45def2f3f1151b19e (patch) | |
tree | 989cb81f6a3db055be4ddfc8be8a8b780371f63d /src/window | |
parent | d4211b9e21e4d8e76fa822df997df55b3a697126 (diff) |
right-alt/altgr should count as alt modifier
Diffstat (limited to 'src/window')
-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); |