X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56cb684ab2df095cfbbab7a74c5666e719c87f0a..59c962bf54667cab735353b2ec3b7a2438464f22:/src/x11/toplevel.cpp diff --git a/src/x11/toplevel.cpp b/src/x11/toplevel.cpp index 648bb6ac3a..b610b7f0a5 100644 --- a/src/x11/toplevel.cpp +++ b/src/x11/toplevel.cpp @@ -106,6 +106,9 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent, 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, @@ -257,7 +260,7 @@ void wxTopLevelWindowX11::SetIcon(const wxIcon& icon) 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);