Don't assign the return value to a member variable.
svn path=/trunk/KDE/kdebase/workspace/; revision=845784
This commit is contained in:
parent
63b01aff5d
commit
ff13bd5ed5
1 changed files with 4 additions and 4 deletions
|
@ -483,7 +483,7 @@ Pixmap Toplevel::createWindowPixmap()
|
|||
assert( compositing());
|
||||
grabXServer();
|
||||
KXErrorHandler err;
|
||||
window_pix = XCompositeNameWindowPixmap( display(), frameId());
|
||||
Pixmap pix = XCompositeNameWindowPixmap( display(), frameId());
|
||||
// check that the received pixmap is valid and actually matches what we
|
||||
// know about the window (i.e. size)
|
||||
XWindowAttributes attrs;
|
||||
|
@ -492,11 +492,11 @@ Pixmap Toplevel::createWindowPixmap()
|
|||
|| attrs.width != width() || attrs.height != height() || attrs.map_state != IsViewable )
|
||||
{
|
||||
kDebug( 1212 ) << "Creating window pixmap failed: " << this;
|
||||
XFreePixmap( display(), window_pix );
|
||||
window_pix = None;
|
||||
XFreePixmap( display(), pix );
|
||||
pix = None;
|
||||
}
|
||||
ungrabXServer();
|
||||
return window_pix;
|
||||
return pix;
|
||||
#else
|
||||
return None;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue