Well, SetParent doesn't work properly at all, but at least it must preserve
window ID. In fact it also must preserve window styles, destroy X counterpart if parent of popup or overlapped window is set to someting different from Desktop, and lot of other stuff that it must and mustn't do. But preserving ID is good enough for now.
This commit is contained in:
parent
ae89703581
commit
71b1246638
|
@ -447,7 +447,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
|
||||||
if( pWndParent == pDesktop )
|
if( pWndParent == pDesktop )
|
||||||
{
|
{
|
||||||
wndPtr->dwStyle &= ~WS_CHILD;
|
wndPtr->dwStyle &= ~WS_CHILD;
|
||||||
wndPtr->wIDmenu = 0;
|
|
||||||
if( X11DRV_GetXRootWindow() == DefaultRootWindow(display) )
|
if( X11DRV_GetXRootWindow() == DefaultRootWindow(display) )
|
||||||
{
|
{
|
||||||
CREATESTRUCTA cs;
|
CREATESTRUCTA cs;
|
||||||
|
|
Loading…
Reference in New Issue