Port from xdamage to xcb-damage

No functional changes intended. The new xcb_damage_query_version() was
previously done by XDamageQueryExtension() internally.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2018-09-27 17:29:51 +02:00
parent 0a98ef79ef
commit 62b847323c
5 changed files with 26 additions and 15 deletions

View File

@ -157,11 +157,11 @@ free_picture(session_t *ps, Picture *p) {
* Destroy a <code>Damage</code>.
*/
inline static void
free_damage(session_t *ps, Damage *p) {
free_damage(session_t *ps, xcb_damage_damage_t *p) {
if (*p) {
// BadDamage will be thrown if the window is destroyed
set_ignore_next(ps);
XDamageDestroy(ps->dpy, *p);
xcb_damage_destroy(XGetXCBConnection(ps->dpy), *p);
*p = None;
}
}