diff --git a/src/parse.c b/src/parse.c index f273ec8..0a8d201 100644 --- a/src/parse.c +++ b/src/parse.c @@ -33,7 +33,7 @@ #include "parse.h" xcb_keysym_t Alt_L, Alt_R, Super_L, Super_R, Hyper_L, Hyper_R, - Meta_L, Meta_R, Mode_switch, Num_Lock, Scroll_Lock; + Meta_L, Meta_R, Num_Lock, Scroll_Lock; keysym_dict_t nks_dict[] = {/*{{{*/ {"VoidSymbol" , 0xffffff} , @@ -2744,7 +2744,7 @@ bool parse_modifier(char *name, uint16_t *modfield) *modfield |= (modfield_from_keysym(Meta_L) | modfield_from_keysym(Meta_R)); return true; } else if (strcmp(name, "mode_switch") == 0) { - *modfield |= modfield_from_keysym(Mode_switch); + *modfield |= XCB_MOD_MASK_5; return true; } else if (strcmp(name, "mod1") == 0) { *modfield |= XCB_MOD_MASK_1; @@ -2802,7 +2802,6 @@ void get_standard_keysyms(void) GETKS(Super_R) GETKS(Hyper_L) GETKS(Hyper_R) - GETKS(Mode_switch) GETKS(Num_Lock) GETKS(Scroll_Lock) #undef GETKS diff --git a/src/types.c b/src/types.c index 2d4b57e..fcea4bf 100644 --- a/src/types.c +++ b/src/types.c @@ -145,7 +145,7 @@ chord_t *make_chord(xcb_keysym_t keysym, xcb_button_t button, uint16_t modfield, for (unsigned char col = 0; col < KEYSYMS_PER_KEYCODE; col++) { xcb_keysym_t ks = xcb_key_symbols_get_keysym(symbols, *kc, col); if (ks == keysym) { - uint16_t implicit_modfield = (col & 1 ? XCB_MOD_MASK_SHIFT : 0) | (col & 2 ? modfield_from_keysym(Mode_switch) : 0); + uint16_t implicit_modfield = (col & 1 ? XCB_MOD_MASK_SHIFT : 0) | (col & 2 ? XCB_MOD_MASK_5 : 0); uint16_t explicit_modfield = modfield | implicit_modfield; chord = malloc(sizeof(chord_t)); bool unique = true; diff --git a/src/types.h b/src/types.h index 1a5c51f..57b01d8 100644 --- a/src/types.h +++ b/src/types.h @@ -34,8 +34,6 @@ #define ESCAPE_KEYSYM 0xff1b #define SYNCHRONOUS_CHAR ';' -extern xcb_keysym_t Mode_switch; - typedef struct chord_t chord_t; struct chord_t { char repr[MAXLEN];