-#else
-
- int extraFlags = GR_EVENT_MASK_CLOSE_REQ;
-
- long backColor, foreColor;
- backColor = GR_RGB(m_backgroundColour.Red(), m_backgroundColour.Green(), m_backgroundColour.Blue());
- foreColor = GR_RGB(m_foregroundColour.Red(), m_foregroundColour.Green(), m_foregroundColour.Blue());
-
- Window xwindow = XCreateWindowWithColor( xdisplay, xparent, pos2.x, pos2.y, size2.x, size2.y,
- 0, 0, InputOutput, xvisual, backColor, foreColor);
- XSelectInput( xdisplay, xwindow,
- extraFlags | ExposureMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
- ButtonMotionMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask |
- KeymapStateMask | FocusChangeMask | ColormapChangeMask | StructureNotifyMask |
- PropertyChangeMask );
-
- XSetWindowBackgroundPixmap( xdisplay, xwindow, None );
-
- m_mainWindow = (WXWindow) xwindow;
- wxAddWindowToTable( xwindow, (wxWindow*) this );
-
- XMapWindow( xdisplay, xwindow );
-#endif