added missing ifdefs for those of us without XDAMAGE

svn path=/trunk/KDE/kdebase/workspace/; revision=670200
This commit is contained in:
Jeremy Paul Whiting 2007-05-31 17:13:07 +00:00
parent c6dedebad2
commit 36c309ab8d

View file

@ -26,7 +26,9 @@ Toplevel::Toplevel( Workspace* ws )
, frame( None ) , frame( None )
, wspace( ws ) , wspace( ws )
, window_pix( None ) , window_pix( None )
#ifdef HAVE_XDAMAGE
, damage_handle( None ) , damage_handle( None )
#endif
, is_shape( false ) , is_shape( false )
, effect_window( NULL ) , effect_window( NULL )
, wmClientLeaderWin( 0 ) , wmClientLeaderWin( 0 )
@ -35,7 +37,9 @@ Toplevel::Toplevel( Workspace* ws )
Toplevel::~Toplevel() Toplevel::~Toplevel()
{ {
#ifdef HAVE_XDAMAGE
assert( damage_handle == None ); assert( damage_handle == None );
#endif
discardWindowPixmap(); discardWindowPixmap();
delete info; delete info;
} }
@ -100,7 +104,9 @@ void Toplevel::copyToDeleted( Toplevel* c )
frame = c->frame; frame = c->frame;
wspace = c->wspace; wspace = c->wspace;
window_pix = c->window_pix; window_pix = c->window_pix;
#ifdef HAVE_XDAMAGE
damage_handle = None; damage_handle = None;
#endif
damage_region = c->damage_region; damage_region = c->damage_region;
repaints_region = c->repaints_region; repaints_region = c->repaints_region;
is_shape = c->is_shape; is_shape = c->is_shape;