summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Xdamage.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c
index ba61371..4c822a0 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -362,3 +362,22 @@ XDamageSubtract (Display *dpy, Damage damage,
UnlockDisplay (dpy);
SyncHandle ();
}
+
+void
+XDamagePost (Display *dpy, Drawable drawable, XserverRegion region)
+{
+ XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy);
+ xDamagePostReq *req;
+ int len;
+
+ XDamageSimpleCheckExtension (dpy, info);
+ LockDisplay (dpy);
+ GetReq (DamagePost, req);
+ req->reqType = info->codes->major_opcode;
+ req->damageReqType = X_DamagePost;
+ req->drawable = drawable;
+ req->region = region;
+
+ UnlockDisplay (dpy);
+ SyncHandle ();
+}