+2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
+
+ * XplatUIX11.cs: Improved distinguishing between window types to
+ tell the WM a type closer to what the app wants (Fixes #78107)
+
2006-04-14 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
if (transient) {
atom_count = 0;
- atoms[atom_count++] = atoms[atom_count++] = NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_DOCK].ToInt32();
+ if ((cp.ExStyle & ((int)WindowExStyles.WS_EX_TOOLWINDOW)) != 0) {
+ atoms[atom_count++] = atoms[atom_count++] = NetAtoms[(int)NA._NET_WM_WINDOW_TYPE_TOOLBAR].ToInt32();
+ } else if (decorations == 0) {
+ atoms[atom_count++] = 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();
+ }
XChangeProperty(DisplayHandle, hwnd.whole_window, NetAtoms[(int)NA._NET_WM_WINDOW_TYPE], (IntPtr)Atom.XA_ATOM, 32, PropertyMode.Replace, atoms, atom_count);
}