// TODO: For dialogs, this should be wxSYS_COLOUR_3DFACE
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
m_backgroundColour.CalcPixel( (WXColormap) cm );
-
+ m_hasBgCol = TRUE;
+
XSetWindowAttributes xattributes;
XSizeHints size_hints;
XWMHints wm_hints;
CWBorderPixel | CWBackPixel;
xattributes.background_pixel = m_backgroundColour.GetPixel();
xattributes.border_pixel = BlackPixel( xdisplay, xscreen );
+
+ // TODO: if we want no border, caption etc.,
+ // I think we set this to True to remove decorations
xattributes.override_redirect = False;
Window xwindow = XCreateWindow( xdisplay, xparent, pos.x, pos.y, size.x, size.y,
if (icon.GetMask())
{
wmHints->flags |= IconMaskHint;
- wmHints->icon_mask = (Pixmap) icon.GetMask()->GetPixmap();
+ wmHints->icon_mask = (Pixmap) icon.GetMask()->GetBitmap();
}
XSetWMHints(wxGlobalDisplay(), (Window) GetMainWindow(), wmHints);