Prevent bad window X error.

This commit is contained in:
Lars Heete 1999-06-26 11:45:36 +00:00 committed by Alexandre Julliard
parent 967ec70fe5
commit dfc46d94a6
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ void X11DRV_WND_SetWindowPos(WND *wndPtr, const WINDOWPOS *winpos, BOOL bChangeP
WIN_ReleaseWndPtr(insertPtr); WIN_ReleaseWndPtr(insertPtr);
} }
} }
if (changeMask) if (changeMask && X11DRV_WND_GetXWindow(winposPtr))
{ {
TSXReconfigureWMWindow( display, X11DRV_WND_GetXWindow(winposPtr), 0, changeMask, &winChanges ); TSXReconfigureWMWindow( display, X11DRV_WND_GetXWindow(winposPtr), 0, changeMask, &winChanges );
if( winposPtr->class->style & (CS_VREDRAW | CS_HREDRAW) ) if( winposPtr->class->style & (CS_VREDRAW | CS_HREDRAW) )