From: Joshua Ashton Date: Sun, 17 Oct 2021 22:00:54 +0000 (+0000) Subject: cursor: Fix modifier button check X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=398cad692d7eed716d4953d160091eda3a2968be;p=proto%2Flabwc.git cursor: Fix modifier button check Previously any modifier would trigger this due to &ing the wrong value. Signed-off-by: Joshua Ashton --- diff --git a/src/cursor.c b/src/cursor.c index ec748dba..b81dbcc6 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -451,7 +451,7 @@ cursor_button(struct wl_listener *listener, void *data) /* handle alt + _press_ on view */ struct wlr_input_device *device = seat->keyboard_group->input_device; uint32_t modifiers = wlr_keyboard_get_modifiers(device->keyboard); - if (modifiers & XKB_KEY_Alt_L && event->state == WLR_BUTTON_PRESSED) { + if (modifiers & WLR_MODIFIER_ALT && event->state == WLR_BUTTON_PRESSED) { handle_cursor_button_with_meta_key(view, event->button, server->seat.cursor->x, server->seat.cursor->y); return;