From fa2477a8d875f379a30d7fb87dd7421e13aeff2b Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 2 Oct 2006 08:33:08 +0000 Subject: [PATCH] small xdamage fix git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@706 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/conky.c b/src/conky.c index 9aace59f..125fd398 100644 --- a/src/conky.c +++ b/src/conky.c @@ -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