From 36c309ab8d9f9e25e2bb9003b3ac69a2903d5321 Mon Sep 17 00:00:00 2001 From: Jeremy Paul Whiting Date: Thu, 31 May 2007 17:13:07 +0000 Subject: [PATCH] added missing ifdefs for those of us without XDAMAGE svn path=/trunk/KDE/kdebase/workspace/; revision=670200 --- toplevel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toplevel.cpp b/toplevel.cpp index fec43e7059..401b2e7247 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -26,7 +26,9 @@ Toplevel::Toplevel( Workspace* ws ) , frame( None ) , wspace( ws ) , window_pix( None ) +#ifdef HAVE_XDAMAGE , damage_handle( None ) +#endif , is_shape( false ) , effect_window( NULL ) , wmClientLeaderWin( 0 ) @@ -35,7 +37,9 @@ Toplevel::Toplevel( Workspace* ws ) Toplevel::~Toplevel() { +#ifdef HAVE_XDAMAGE assert( damage_handle == None ); +#endif discardWindowPixmap(); delete info; } @@ -100,7 +104,9 @@ void Toplevel::copyToDeleted( Toplevel* c ) frame = c->frame; wspace = c->wspace; window_pix = c->window_pix; +#ifdef HAVE_XDAMAGE damage_handle = None; +#endif damage_region = c->damage_region; repaints_region = c->repaints_region; is_shape = c->is_shape;