]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/popupwin.cpp
don't show size grip when maximized
[wxWidgets.git] / src / x11 / popupwin.cpp
index 4ce0694c674d30ebcf8fe3d5b08e398f5d395cc4..df21552719435f69279c0266c5941429219a8734 100644 (file)
@@ -77,6 +77,10 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
     m_mainWidget = (WXWindow) xwindow;
     wxAddWindowToTable( xwindow, (wxWindow*) this );
 
+    // Set background to None which will prevent X11 from clearing the
+    // background comletely.
+    XSetWindowBackgroundPixmap( xdisplay, xwindow, None );
+
     XSetTransientForHint( xdisplay, xwindow, xparent );
 
     XWMHints wm_hints;
@@ -102,11 +106,7 @@ bool wxPopupWindow::Show( bool show )
 {
     bool ret = wxWindowX11::Show( show );
 
-#if 0    
-    int x,y;
-    GetSize( &x, &y );
-    printf( "popup size %d, %d\n", x, y );
-#endif
+    Raise();
     
     return ret;
 }