]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/popupwin.cpp
Put some life into GTK 2.0 drawing.
[wxWidgets.git] / src / x11 / popupwin.cpp
index 6f767a6ef66214e1c24716e9f711481f56b07609..9161a1e64198b646ce4692fb4251ae371a968877 100644 (file)
@@ -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;