commit: 5b08fd15cf532542ca245368eb57be69b95ee54a
parent: f14354458c15e9924786764e152367f6f2c6d888
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 1 Jul 2019 07:34:19 +0200
Add configuration of the base modifier key
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/config.h b/config.h
@@ -0,0 +1 @@
+#define INABAN_BINDING_MOD WLR_MODIFIER_ALT+
\ No newline at end of file
diff --git a/inaban.c b/inaban.c
@@ -118,7 +118,7 @@ keyboard_handle_key(struct wl_listener *listener, void *data)
bool handled = false;
uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard->device->keyboard);
- if((modifiers & WLR_MODIFIER_ALT) && event->state == WLR_KEY_PRESSED)
+ if((modifiers & INABAN_BINDING_MOD) && event->state == WLR_KEY_PRESSED)
{
/* If alt is held down and this button was _pressed_, we attempt to
* process it as a compositor keybinding. */