Skip to content

Commit c54ef4f

Browse files
committed
Add 14th bit to XK_SWITCH_MOD bitmask
The bits of uint signal in an XKeyEvent which concern the key group (keyboard layout) are bits 13 and 14, as documented here: https://www.x.org/releases/X11R7.7/doc/libX11/XKB/xkblib.html#Groups_and_Shift_Levels In the older version, only bit 13 was marked as part of XK_SWITCH_MOD, this causes issues for users who have more than two keymaps. the 14th bit is not in ignoremod, key sequences are not caught by match(), if they switch to a third or fourth keyboard. Reference: https://git.suckless.org/st/commit/2ec571a30c0c3b1a17f6b3631c80d573582f59a1.html
1 parent 7ee4f57 commit c54ef4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ typedef struct {
6868
/* X modifiers */
6969
#define XK_ANY_MOD UINT_MAX
7070
#define XK_NO_MOD 0
71-
#define XK_SWITCH_MOD (1<<13)
71+
#define XK_SWITCH_MOD (1<<13|1<<14)
7272

7373
/* function definitions used in config.h */
7474
static void clipcopy(const Arg *);

0 commit comments

Comments
 (0)