Author: miguel
Date: 2006-07-21 18:33:53 -0400 (Fri, 21 Jul 2006)
New Revision: 62883
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
Do not add the atoms twice
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-07-21 22:26:45 UTC (rev 62882)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-07-21 22:33:53 UTC (rev 62883)
@@ -782,15 +782,15 @@
if ((cp.ExStyle &
(int)WindowExStyles.WS_EX_TOPMOST) != 0) {
atom_count = 0;
- atoms[atom_count++] =
atoms[atom_count++] = NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DOCK].ToInt32();
+ atoms[atom_count++] =
NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DOCK].ToInt32();
XChangeProperty(DisplayHandle,
hwnd.whole_window, NetAtoms[(int)NA._NET_WM_WINDOW_TYPE], (IntPtr)Atom.XA_ATOM,
32, PropertyMode.Replace, atoms, atom_count);
} else if (transient) {
atom_count = 0;
if ((cp.ExStyle &
((int)WindowExStyles.WS_EX_TOOLWINDOW)) != 0) {
- atoms[atom_count++] =
atoms[atom_count++] = NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DOCK].ToInt32();
+ atoms[atom_count++] =
NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DOCK].ToInt32();
} else {
- atoms[atom_count++] =
atoms[atom_count++] = NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DIALOG].ToInt32();
+ atoms[atom_count++] =
NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DIALOG].ToInt32();
}
XChangeProperty(DisplayHandle,
hwnd.whole_window, NetAtoms[(int)NA._NET_WM_WINDOW_TYPE], (IntPtr)Atom.XA_ATOM,
32, PropertyMode.Replace, atoms, atom_count);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches