Fix bindings using Mode_switch

fixes #1518
This commit is contained in:
Michael Stapelberg
2015-03-07 14:51:24 +01:00
parent a88cdf4ba7
commit 7340a3e642
2 changed files with 5 additions and 5 deletions

View File

@ -1267,7 +1267,7 @@ void handle_event(int type, xcb_generic_event_t *event) {
/* See The XKB Extension: Library Specification, section 14.1 */
/* We check if the current group (each group contains
* two levels) has been changed. Mode_switch activates
* group XkbGroup2Index */
* group XCB_XKB_GROUP_2 */
if (xkb_current_group == state->group)
return;
xkb_current_group = state->group;
@ -1277,7 +1277,7 @@ void handle_event(int type, xcb_generic_event_t *event) {
grab_all_keys(conn, false);
} else {
DLOG("Mode_switch enabled\n");
grab_all_keys(conn, false);
grab_all_keys(conn, true);
}
}