X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86fd8bda3817a22588e5ff92b932dfaecc1eb37a..c60ba92d097bd49e204f140f22ade84a1b6bc38c:/src/x11/popupwin.cpp diff --git a/src/x11/popupwin.cpp b/src/x11/popupwin.cpp index 4ce0694c67..df21552719 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; @@ -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; }