added missing ifdefs for those of us without XDAMAGE
svn path=/trunk/KDE/kdebase/workspace/; revision=670200