From 71b12466384d42616132932004f328f36bc89d8a Mon Sep 17 00:00:00 2001
From: Serge Ivanov <sergei@corel.ca>
Date: Wed, 7 Jun 2000 03:46:14 +0000
Subject: [PATCH] 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.

---
 windows/x11drv/wnd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/windows/x11drv/wnd.c b/windows/x11drv/wnd.c
index d040b5d7908..52cea74b9d0 100644
--- a/windows/x11drv/wnd.c
+++ b/windows/x11drv/wnd.c
@@ -447,7 +447,6 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
             if( pWndParent == pDesktop )
             {
                 wndPtr->dwStyle &= ~WS_CHILD;
-                wndPtr->wIDmenu = 0;
                 if( X11DRV_GetXRootWindow() == DefaultRootWindow(display) )
                 {
                     CREATESTRUCTA cs;
-- 
GitLab