X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90f501b16e1b6dcc9e2aae6a413287a22842da61..92b0a2a13ccaaa23a97964ff35cdaf39dd44a104:/src/x11/popupwin.cpp diff --git a/src/x11/popupwin.cpp b/src/x11/popupwin.cpp index e4d809c98c..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 )