- result |= BIND_SHIFT;
- if (strstr(str, "Mode_switch") != NULL)
- result |= BIND_MODE_SWITCH;
+ result |= XCB_KEY_BUT_MASK_SHIFT;
+
+ if (strstr(str, "Group1") != NULL)
+ result |= (I3_XKB_GROUP_MASK_1 << 16);
+ if (strstr(str, "Group2") != NULL ||
+ strstr(str, "Mode_switch") != NULL)
+ result |= (I3_XKB_GROUP_MASK_2 << 16);
+ if (strstr(str, "Group3") != NULL)
+ result |= (I3_XKB_GROUP_MASK_3 << 16);
+ if (strstr(str, "Group4") != NULL)
+ result |= (I3_XKB_GROUP_MASK_4 << 16);