mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 10:40:25 +00:00
Xext: add simple macro to easily check a generic event's type.
This commit is contained in:
@@ -87,6 +87,12 @@ extern GEExtension GEExtensions[MAXEXTENSIONS];
|
||||
#define GEEventFill(ev) \
|
||||
GEExtensions[GEEXTIDX(xE)].evfill
|
||||
|
||||
#define GEIsType(ev, ext, ev_type) \
|
||||
((ev->u.u.type == GenericEvent) && \
|
||||
((xGenericEvent*)(ev))->extension == ext && \
|
||||
((xGenericEvent*)(ev))->evtype == ev_type)
|
||||
|
||||
|
||||
/* Interface for other extensions */
|
||||
void GEWindowSetMask(ClientPtr pClient, WindowPtr pWin, int extension, Mask mask);
|
||||
void GERegisterExtension(
|
||||
|
||||
Reference in New Issue
Block a user