mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-20 14:08:34 +02:00
Add XI2_EVENT check.
This commit is contained in:
parent
92e0a324b5
commit
95ed2ab715
1 changed files with 5 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ typedef const char *string;
|
|||
#endif
|
||||
|
||||
#include <X11/extensions/XIproto.h>
|
||||
#include <X11/extensions/XI2proto.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XI2.h>
|
||||
#include "exglobals.h"
|
||||
|
|
@ -192,6 +193,10 @@ typedef const char *string;
|
|||
#define CORE_EVENT(event) \
|
||||
(!((event)->u.u.type & EXTENSION_EVENT_BASE) && \
|
||||
(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.
|
||||
* See DeliverEventsToWindow().
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue