Some more NanoX compile fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-21 14:52:04 +00:00
parent 20bd88adbc
commit 788519c605
8 changed files with 237 additions and 47 deletions

View File

@@ -54,6 +54,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
Visual *xvisual = DefaultVisual( xdisplay, xscreen );
Window xparent = RootWindow( xdisplay, xscreen );
#if wxUSE_NANOX
long xattributes_mask = 0;
#else
XSetWindowAttributes xattributes;
long xattributes_mask =
@@ -64,7 +67,8 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
xattributes.border_pixel = BlackPixel( xdisplay, xscreen );
xattributes.override_redirect = True;
xattributes.save_under = True;
#endif
Window xwindow = XCreateWindow( xdisplay, xparent, pos.x, pos.y, size.x, size.y,
0, DefaultDepth(xdisplay,xscreen), InputOutput, xvisual, xattributes_mask, &xattributes );
@@ -83,12 +87,14 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
XSetTransientForHint( xdisplay, xwindow, xparent );
#if !wxUSE_NANOX
XWMHints wm_hints;
wm_hints.flags = InputHint | StateHint /* | WindowGroupHint */;
wm_hints.input = True;
wm_hints.initial_state = NormalState;
XSetWMHints( xdisplay, xwindow, &wm_hints);
#endif
return TRUE;
}