X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86fd8bda3817a22588e5ff92b932dfaecc1eb37a..92b0a2a13ccaaa23a97964ff35cdaf39dd44a104:/src/x11/popupwin.cpp diff --git a/src/x11/popupwin.cpp b/src/x11/popupwin.cpp index 4ce0694c67..881d442bbc 100644 --- a/src/x11/popupwin.cpp +++ b/src/x11/popupwin.cpp @@ -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; @@ -88,9 +92,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) return TRUE; } -void wxPopupWindow::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) ) +void wxPopupWindow::DoMoveWindow(int x, int y, int width, int height ) { - wxFAIL_MSG( wxT("DoMoveWindow called for wxPopupWindow") ); + wxWindowX11::DoMoveWindow( x, y, width, height ); } void wxPopupWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags ) @@ -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; }