Skip to content

Commit f47c6a6

Browse files
committed
[PR #972] Xi: turn XIAllMasks from variable into #define
PR: #972
1 parent 9653054 commit f47c6a6

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Xi/exglobals.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ extern const Mask DeviceButtonGrabMask;
5151
extern const Mask DeviceButtonMotionMask;
5252
extern const Mask DevicePresenceNotifyMask;
5353
extern const Mask DevicePropertyNotifyMask;
54-
extern const Mask XIAllMasks;
5554

5655
extern int DeviceValuator;
5756
extern int DeviceKeyPress;

Xi/extinit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ const Mask DeviceButtonGrabMask = (1L << 17);
148148
const Mask DeviceOwnerGrabButtonMask = (1L << 17);
149149
const Mask DevicePresenceNotifyMask = (1L << 18);
150150
const Mask DevicePropertyNotifyMask = (1L << 19);
151-
const Mask XIAllMasks = (1L << 20) - 1;
152151

153152
int ExtEventIndex;
154153

Xi/selectev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ SOFTWARE.
6565
#include "grabdev.h"
6666
#include "selectev.h"
6767

68+
#define XIAllMasks ((Mask)((1L << 20) - 1))
69+
6870
static int
6971
HandleDevicePresenceMask(ClientPtr client, WindowPtr win,
7072
XEventClass * cls, CARD16 *count)

0 commit comments

Comments
 (0)