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:
Enrico Weigelt, metux IT consult
2025-09-05 16:56:48 +02:00
committed by Enrico Weigelt
parent 61aa2ede91
commit 686f66ac4c
3 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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)