X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/788519c6055dc2290c40fb1569d2889d8ef8e76b..4e5a4c69c540b430fba8efe5dae1bc1ffd5caeca:/src/x11/popupwin.cpp diff --git a/src/x11/popupwin.cpp b/src/x11/popupwin.cpp index 6f767a6ef6..9161a1e641 100644 --- a/src/x11/popupwin.cpp +++ b/src/x11/popupwin.cpp @@ -78,7 +78,8 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) KeymapStateMask | FocusChangeMask | ColormapChangeMask | StructureNotifyMask | PropertyChangeMask ); - m_mainWidget = (WXWindow) xwindow; + m_mainWindow = (WXWindow) xwindow; + m_clientWindow = (WXWindow) xwindow; wxAddWindowToTable( xwindow, (wxWindow*) this ); // Set background to None which will prevent X11 from clearing the @@ -87,7 +88,10 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) XSetTransientForHint( xdisplay, xwindow, xparent ); -#if !wxUSE_NANOX +#if wxUSE_NANOX + // Switch off WM + wxSetWMDecorations(xwindow, 0); +#else XWMHints wm_hints; wm_hints.flags = InputHint | StateHint /* | WindowGroupHint */; wm_hints.input = True;