Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Xi/exglobals.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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;
Expand Down
1 change: 0 additions & 1 deletion Xi/extinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,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;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I actually like the old version more. It makes sense to have it defined together with other masks, otherwise it’s too easy to forget about XIAllMasks, if a new DeviceProperty*Mask is added or removed. And it’s immediately clear why it’s 20 there when we have other definitions nearby.


int ExtEventIndex;

Expand Down
2 changes: 2 additions & 0 deletions Xi/selectev.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ SOFTWARE.
#include "grabdev.h"
#include "selectev.h"

#define XIAllMasks ((Mask)((1L << 20) - 1))

static int
HandleDevicePresenceMask(ClientPtr client, WindowPtr win,
XEventClass * cls, CARD16 *count)
Expand Down