Commit 8cef8965 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Since SetParent now hides/shows, explicitly invalidating DCs in the

parent change operation should no longer be necessary.
parent 902f9c65
......@@ -270,8 +270,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
if( pWndParent != pWndPrev )
{
BOOL32 bFixupDCE = IsWindowVisible32(wndPtr->hwndSelf);
if ( X11DRV_WND_GetXWindow(wndPtr) )
{
/* Toplevel window needs to be reparented. Used by Tk 8.0 */
......@@ -279,8 +277,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
TSXDestroyWindow( display, X11DRV_WND_GetXWindow(wndPtr) );
((X11DRV_WND_DATA *) wndPtr->pDriverData)->window = None;
}
else if( bFixupDCE )
DCE_InvalidateDCE( wndPtr, &wndPtr->rectWindow );
WIN_UnlinkWindow(wndPtr->hwndSelf);
wndPtr->parent = pWndParent;
......@@ -324,12 +320,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
}
}
WIN_LinkWindow(wndPtr->hwndSelf, HWND_TOP);
if( bFixupDCE )
{
DCE_InvalidateDCE( wndPtr, &wndPtr->rectWindow );
UpdateWindow32(wndPtr->hwndSelf);
}
}
return pWndPrev;
} /* failure */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment