mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Xi: turn XIAllMasks from variable into #define
No need to have an actual (const) variable for something that can easily be a #define. And also moving it into the only source file actually using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
61aa2ede91
commit
686f66ac4c
@@ -51,7 +51,6 @@ extern const Mask DeviceButtonGrabMask;
|
||||
extern const Mask DeviceButtonMotionMask;
|
||||
extern const Mask DevicePresenceNotifyMask;
|
||||
extern const Mask DevicePropertyNotifyMask;
|
||||
extern const Mask XIAllMasks;
|
||||
|
||||
extern int DeviceValuator;
|
||||
extern int DeviceKeyPress;
|
||||
|
||||
@@ -101,7 +101,6 @@ const Mask DeviceButtonGrabMask = (1L << 17);
|
||||
const Mask DeviceOwnerGrabButtonMask = (1L << 17);
|
||||
const Mask DevicePresenceNotifyMask = (1L << 18);
|
||||
const Mask DevicePropertyNotifyMask = (1L << 19);
|
||||
const Mask XIAllMasks = (1L << 20) - 1;
|
||||
|
||||
int ExtEventIndex;
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ SOFTWARE.
|
||||
#include "exglobals.h"
|
||||
#include "grabdev.h"
|
||||
|
||||
#define XIAllMasks ((Mask)((1L << 20) - 1))
|
||||
|
||||
static int
|
||||
HandleDevicePresenceMask(ClientPtr client, WindowPtr win,
|
||||
XEventClass * cls, CARD16 *count)
|
||||
|
||||
Reference in New Issue
Block a user