Skip to content

Commit

Permalink
Add XI2_EVENT check.
Browse files Browse the repository at this point in the history
  • Loading branch information
whot committed Mar 20, 2009
1 parent 92e0a32 commit 95ed2ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dix/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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().
Expand Down

0 comments on commit 95ed2ab

Please sign in to comment.