diff options
author | Adam Jackson <ajax@redhat.com> | 2017-10-24 14:38:13 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-10-24 15:53:28 -0400 |
commit | c2c6e9e68a8815420233c996acdd29ba572b1f0e (patch) | |
tree | 4dbdd7820306e89a6cc3ae46c002027e92fa0966 /include/xkbsrv.h | |
parent | bc5fb8c0928498c32dc33680d40d50e6db5879b6 (diff) |
dix: Don't track the XKB client versions in the ClientRec
XKB stores some stuff in the ClientRec that, style-wise, should probably
be in a client private. vMinor tracks the client's idea of the XKB
minor version, but is never read, we can just nuke it. vMajor is only
used for a bug-compat workaround for X11R6.0-vintage clients. We're
only using though (1<<4) for xkbClientFlags in the protocol, so we can
pack that field down to a u8 and store the bug-compat flag there.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'include/xkbsrv.h')
-rw-r--r-- | include/xkbsrv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xkbsrv.h b/include/xkbsrv.h index 2870f3987..fbb5427e1 100644 --- a/include/xkbsrv.h +++ b/include/xkbsrv.h @@ -235,7 +235,8 @@ typedef struct _XkbSrvLedInfo { * Settings for xkbClientFlags field (used by DIX) * These flags _must_ not overlap with XkbPCF_* */ -#define _XkbClientInitialized (1<<15) +#define _XkbClientInitialized (1<<7) +#define _XkbClientIsAncient (1<<6) #define _XkbWantsDetectableAutoRepeat(c)\ ((c)->xkbClientFlags&XkbPCF_DetectableAutoRepeatMask) |