From b756fb4fa5ed540ea37139d45def2f3f1151b19e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 11 Sep 2023 10:29:28 +0200 Subject: right-alt/altgr should count as alt modifier --- src/window/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window') 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); -- cgit v1.2.3