From bbefa2a16c1a0bcef3ae6999498a83f71ef0e281 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 5 Sep 2015 14:32:58 +0200 Subject: [PATCH] =?utf8?q?Fix=20=E2=80=9Cprecisely=201=20group=E2=80=9D=20?= =?utf8?q?error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixes #1897 --- src/bindings.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bindings.c b/src/bindings.c index f9d2cf8d..32aac05a 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -80,13 +80,13 @@ Binding *configure_binding(const char *bindtype, const char *modifiers, const ch new_binding->command = sstrdup(command); new_binding->event_state_mask = event_state_from_str(modifiers); int group_bits_set = 0; - if (new_binding->event_state_mask & I3_XKB_GROUP_MASK_1) + if ((new_binding->event_state_mask >> 16) & I3_XKB_GROUP_MASK_1) group_bits_set++; - if (new_binding->event_state_mask & I3_XKB_GROUP_MASK_2) + if ((new_binding->event_state_mask >> 16) & I3_XKB_GROUP_MASK_2) group_bits_set++; - if (new_binding->event_state_mask & I3_XKB_GROUP_MASK_3) + if ((new_binding->event_state_mask >> 16) & I3_XKB_GROUP_MASK_3) group_bits_set++; - if (new_binding->event_state_mask & I3_XKB_GROUP_MASK_4) + if ((new_binding->event_state_mask >> 16) & I3_XKB_GROUP_MASK_4) group_bits_set++; if (group_bits_set > 1) ELOG("Keybinding has more than one Group specified, but your X server is always in precisely one group. The keybinding can never trigger.\n"); -- 2.39.5