xkb: Fix endianness of the vmods encoding in XkbRedirectKeyAction

Fixed erroneous little-endian encoding.

Signed-off-by: Pierre Le Marre <dev@wismill.eu>
This commit is contained in:
Pierre Le Marre 2025-10-24 06:02:35 +02:00
parent 81931cc0fd
commit 91c34f708b
No known key found for this signature in database
GPG key ID: 3BFB00E5C59E818E

View file

@ -221,14 +221,14 @@ typedef struct _XkbRedirectKeyAction {
unsigned char vmods1;
} XkbRedirectKeyAction;
#define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|\
((unsigned int)(a)->vmods0))
#define XkbSARedirectSetVMods(a,m) (((a)->vmods1=(((m)>>8)&0xff)),\
((a)->vmods0=((m)&0xff)))
#define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask1)<<8)|\
((unsigned int)(a)->vmods_mask0))
#define XkbSARedirectSetVModsMask(a,m) (((a)->vmods_mask1=(((m)>>8)&0xff)),\
((a)->vmods_mask0=((m)&0xff)))
#define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods0)<<8)|\
((unsigned int)(a)->vmods1))
#define XkbSARedirectSetVMods(a,m) (((a)->vmods0=(((m)>>8)&0xff)),\
((a)->vmods1=((m)&0xff)))
#define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask0)<<8)|\
((unsigned int)(a)->vmods_mask1))
#define XkbSARedirectSetVModsMask(a,m) (((a)->vmods_mask0=(((m)>>8)&0xff)),\
((a)->vmods_mask1=((m)&0xff)))
typedef struct _XkbDeviceBtnAction {
unsigned char type;