dix: unexport defines for device grab states

These aren't used anywhere in modules or outside DIX & XI, so
no need to keep them in public API any longer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1837>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-25 19:34:06 +01:00 committed by Marge Bot
parent 42a1f25faf
commit 5f6cb45ac3
3 changed files with 14 additions and 12 deletions

View File

@ -57,6 +57,7 @@ SOFTWARE.
#include <X11/extensions/XIproto.h> #include <X11/extensions/XIproto.h>
#include "dix/dix_priv.h" #include "dix/dix_priv.h"
#include "dix/input_priv.h"
#include "exglobals.h" #include "exglobals.h"
#include "allowev.h" #include "allowev.h"

View File

@ -293,6 +293,19 @@ void ActivateGrabNoDelivery(DeviceIntPtr dev,
GrabPtr grab, GrabPtr grab,
InternalEvent *event, InternalEvent *event,
InternalEvent *real_event); InternalEvent *real_event);
/* states for device grabs */
#define NOT_GRABBED 0
#define THAWED 1
#define THAWED_BOTH 2 /* not a real state */
#define FREEZE_NEXT_EVENT 3
#define FREEZE_BOTH_NEXT_EVENT 4
#define FROZEN 5 /* any state >= has device frozen */
#define FROZEN_NO_EVENT 5
#define FROZEN_WITH_EVENT 6
#define THAW_OTHERS 7
/** /**
* Masks specifying the type of event to deliver for an InternalEvent; used * Masks specifying the type of event to deliver for an InternalEvent; used
* by EventIsDeliverable. * by EventIsDeliverable.

View File

@ -499,18 +499,6 @@ typedef struct _XIPropertyHandler {
int (*DeleteProperty) (DeviceIntPtr dev, Atom property); int (*DeleteProperty) (DeviceIntPtr dev, Atom property);
} XIPropertyHandler, *XIPropertyHandlerPtr; } XIPropertyHandler, *XIPropertyHandlerPtr;
/* states for devices */
#define NOT_GRABBED 0
#define THAWED 1
#define THAWED_BOTH 2 /* not a real state */
#define FREEZE_NEXT_EVENT 3
#define FREEZE_BOTH_NEXT_EVENT 4
#define FROZEN 5 /* any state >= has device frozen */
#define FROZEN_NO_EVENT 5
#define FROZEN_WITH_EVENT 6
#define THAW_OTHERS 7
typedef struct _GrabInfoRec { typedef struct _GrabInfoRec {
TimeStamp grabTime; TimeStamp grabTime;
Bool fromPassiveGrab; /* true if from passive grab */ Bool fromPassiveGrab; /* true if from passive grab */