X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b0b798d77b7b93b81d62162b290441bc9175e3e..73ef393701bd6c2c689a05d5637cc701e2f5cc2f:/src/x11/popupwin.cpp diff --git a/src/x11/popupwin.cpp b/src/x11/popupwin.cpp index 9294a5d7e2..1645c359a8 100644 --- a/src/x11/popupwin.cpp +++ b/src/x11/popupwin.cpp @@ -61,15 +61,13 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) XWMHints wm_hints; long xattributes_mask = - CWEventMask | + CWOverrideRedirect | CWBorderPixel | CWBackPixel; xattributes.background_pixel = BlackPixel( xdisplay, xscreen ); xattributes.border_pixel = BlackPixel( xdisplay, xscreen ); xattributes.override_redirect = False; - wxSize size(2, 2); - - Window xwindow = XCreateWindow( xdisplay, xparent, 0, 0, size.x, size.y, + Window xwindow = XCreateWindow( xdisplay, xparent, pos.x, pos.y, size.x, size.y, 0, DefaultDepth(xdisplay,xscreen), InputOutput, xvisual, xattributes_mask, &xattributes ); XSelectInput( xdisplay, xwindow,