]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/toplevel.cpp
don't use -q option with egrep, Solaris doesn't have it (bug 517145)
[wxWidgets.git] / src / x11 / toplevel.cpp
index 648bb6ac3a0a7596f7516d8b479951ddca86ff3d..b610b7f0a5fcdc540778c2a541750aed7a504673 100644 (file)
@@ -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);