Add XI2_EVENT check.
This commit is contained in:
parent
92e0a324b5
commit
95ed2ab715
|
@ -147,6 +147,7 @@ typedef const char *string;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
#include <X11/extensions/XI2proto.h>
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
|
@ -192,6 +193,10 @@ typedef const char *string;
|
||||||
#define CORE_EVENT(event) \
|
#define CORE_EVENT(event) \
|
||||||
(!((event)->u.u.type & EXTENSION_EVENT_BASE) && \
|
(!((event)->u.u.type & EXTENSION_EVENT_BASE) && \
|
||||||
(event)->u.u.type != GenericEvent)
|
(event)->u.u.type != GenericEvent)
|
||||||
|
#define XI2_EVENT(event) \
|
||||||
|
(((event)->u.u.type == GenericEvent) && \
|
||||||
|
((xGenericEvent*)(event))->extension == IReqCode)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to indicate a implicit passive grab created by a ButtonPress event.
|
* Used to indicate a implicit passive grab created by a ButtonPress event.
|
||||||
* See DeliverEventsToWindow().
|
* See DeliverEventsToWindow().
|
||||||
|
|
Loading…
Reference in New Issue