From 517d13fbce3ae56f154343671c325c000a7de040 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 11 Aug 2020 10:44:27 +0200 Subject: config: don't allow Shift in mouse bindings Shift is a special modifier that is used to enable selection when the client application is grabbing the mouse. --- config.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index d46b5f8e..40a7e81b 100644 --- a/config.c +++ b/config.c @@ -1026,6 +1026,11 @@ parse_mouse_combos(struct config *conf, const char *combos, key_combo_list_t *ke *key = '\0'; if (!parse_modifiers(conf, combo, key - combo, &modifiers, path, lineno)) goto err; + if (modifiers.shift) { + LOG_AND_NOTIFY_ERR("%s:%d: Shift cannot be used in mosue bindings", + path, lineno); + goto err; + } key++; /* Skip past the '+' */ } -- cgit v1.3