summaryrefslogtreecommitdiff
path: root/src/Xpresent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xpresent.c')
-rw-r--r--src/Xpresent.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Xpresent.c b/src/Xpresent.c
index b49ecbc..0dad7df 100644
--- a/src/Xpresent.c
+++ b/src/Xpresent.c
@@ -565,6 +565,26 @@ XPresentSelectInput(Display *dpy,
return eid;
}
+void
+XPresentFreeInput(Display *dpy,
+ Window window,
+ XID event_id)
+{
+ XPresentExtDisplayInfo *info = XPresentFindDisplay (dpy);
+ xPresentSelectInputReq *req;
+
+ XPresentSimpleCheckExtension (dpy, info);
+ LockDisplay (dpy);
+ GetReq(PresentSelectInput, req);
+ req->reqType = info->codes->major_opcode;
+ req->presentReqType = X_PresentSelectInput;
+ req->eid = event_id;
+ req->window = window;
+ req->eventMask = 0;
+ UnlockDisplay (dpy);
+ SyncHandle();
+}
+
uint32_t
XPresentQueryCapabilities(Display *dpy,
XID target)