XKB: Remove pointless macros
These weren't even being used, which isn't overly surprising, given that they were already in the struct. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
parent
d9ff20e323
commit
67b7e06c4f
|
@ -59,10 +59,6 @@ typedef struct _XkbStateRec {
|
||||||
unsigned char compat_lookup_mods;
|
unsigned char compat_lookup_mods;
|
||||||
unsigned short ptr_buttons;
|
unsigned short ptr_buttons;
|
||||||
} XkbStateRec,*XkbStatePtr;
|
} XkbStateRec,*XkbStatePtr;
|
||||||
#define XkbModLocks(s) ((s)->locked_mods)
|
|
||||||
#define XkbStateMods(s) ((s)->base_mods|(s)->latched_mods|XkbModLocks(s))
|
|
||||||
#define XkbGroupLock(s) ((s)->locked_group)
|
|
||||||
#define XkbStateGroup(s) ((s)->base_group+(s)->latched_group+XkbGroupLock(s))
|
|
||||||
#define XkbStateFieldFromRec(s) XkbBuildCoreState((s)->lookup_mods,(s)->group)
|
#define XkbStateFieldFromRec(s) XkbBuildCoreState((s)->lookup_mods,(s)->group)
|
||||||
#define XkbGrabStateFromRec(s) XkbBuildCoreState((s)->grab_mods,(s)->group)
|
#define XkbGrabStateFromRec(s) XkbBuildCoreState((s)->grab_mods,(s)->group)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue