Author: toshok
Date: 2006-11-07 15:23:34 -0500 (Tue, 07 Nov 2006)
New Revision: 67490

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2006-11-07  Chris Toshok  <[EMAIL PROTECTED]>

        * XplatUIX11.cs: fix #79790 again, by using the
        _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 20:18:31 UTC (rev 67489)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 20:23:34 UTC (rev 67490)
@@ -1,3 +1,8 @@
+2006-11-07  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * XplatUIX11.cs: fix #79790 again, by using the
+       _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
+
 2006-11-07  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * ToolBar.cs: Fix left click checking.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-07 20:18:31 UTC (rev 67489)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-07 20:23:34 UTC (rev 67490)
@@ -864,6 +864,8 @@
 
                        client_rect = hwnd.ClientRect;
                        lock (XlibLock) {
+                               atom_count = 0;
+
                                // needed! map toolwindows to 
_NET_WM_WINDOW_TYPE_UTILITY to make newer metacity versions happy
                                // and get those windows in front of their 
parents
                                if (ExStyleSet (cp.ExStyle, 
WindowExStyles.WS_EX_TOOLWINDOW)) {
@@ -880,7 +882,7 @@
                                        XSetTransientForHint(DisplayHandle, 
hwnd.whole_window, hwnd.parent.whole_window);
                                } else if (!ExStyleSet (cp.ExStyle, 
WindowExStyles.WS_EX_APPWINDOW)) {
                                        /* this line keeps the window from 
showing up in gnome's taskbar */
-                                       //XSetTransientForHint(DisplayHandle, 
hwnd.whole_window, FosterParent);
+                                       atoms[atom_count++] = 
_NET_WM_STATE_SKIP_TASKBAR.ToInt32();
                                }
                                if ((client_rect.Width < 1) || 
(client_rect.Height < 1)) {
                                        XMoveResizeWindow(DisplayHandle, 
hwnd.client_window, -5, -5, 1, 1);
@@ -888,8 +890,6 @@
                                        XMoveResizeWindow(DisplayHandle, 
hwnd.client_window, client_rect.X, client_rect.Y, client_rect.Width, 
client_rect.Height);
                                }
 
-                               atom_count = 0;
-
                                if (ExStyleSet (cp.ExStyle, 
WindowExStyles.WS_EX_TOOLWINDOW)) {
                                        atoms[atom_count++] = 
_NET_WM_STATE_SKIP_TASKBAR.ToInt32();
                                }
@@ -2374,9 +2374,6 @@
                                XChangeProperty(DisplayHandle, 
hwnd.whole_window, _NET_WM_WINDOW_TYPE, (IntPtr)Atom.XA_ATOM, 32, 
PropertyMode.Replace, atoms, 1);
 
                                XSetTransientForHint (DisplayHandle, 
hwnd.whole_window, RootWindow);
-                       } else if (!ExStyleSet (cp.ExStyle, 
WindowExStyles.WS_EX_APPWINDOW)) {
-                               /* this line keeps the window from showing up 
in gnome's taskbar */
-                               //XSetTransientForHint (DisplayHandle, 
hwnd.whole_window, FosterParent);
                        }
 
                        SetWMStyles(hwnd, cp);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to