summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-05 17:56:58 -0800
committerEric Anholt <eric@anholt.net>2007-01-05 17:58:53 -0800
commit716d84889f90880c634136e9c1e754edd587ea9e (patch)
tree02d67b2b0a5fe41402ddf7ccb5f88e3fc418c7d8 /src
parentc3c2777a7805c95f7d7bf64998e188d0eba65cba (diff)
Add a request to report a region of damage against a drawable.
This brings the library up to supporting version 1.1 of the protocol. Bump package version accordingly.
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 ();
+}