1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-23 19:39:06 +00:00

small xdamage fix

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@706 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-10-02 08:33:08 +00:00
parent ff1fefda7c
commit fa2477a8d8

View File

@ -5984,13 +5984,15 @@ static void main_loop()
XDamageNotifyEvent *dev = (XDamageNotifyEvent *) &ev;
XFixesSetRegion(display, part, &dev->area, 1);
XFixesUnionRegion(display, region2, region2, part);
XDamageSubtract(display, damage, region2, None);
XFixesSetRegion(display, region2, 0, 0);
}
#endif /* HAVE_XDAMAGE */
break;
}
}
}
#ifdef HAVE_XDAMAGE
XDamageSubtract(display, damage, region2, None);
XFixesSetRegion(display, region2, 0, 0);
#endif /* HAVE_XDAMAGE */
/* XDBE doesn't seem to provide a way to clear the back buffer without
* interfering with the front buffer, other than passing XdbeBackground