Author: toshok
Date: 2006-10-30 20:15:47 -0500 (Mon, 30 Oct 2006)
New Revision: 67167
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
* XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
just non-CHILD ones. otherwise sometimes scrollbars end up with
client_windows not being resized to the proper size (ReportBuilder
shows this extremely well).
2006-10-30 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-31 00:26:54 UTC (rev 67166)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-10-31 01:15:47 UTC (rev 67167)
@@ -1,5 +1,12 @@
2006-10-30 Chris Toshok <[EMAIL PROTECTED]>
+ * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
+ just non-CHILD ones. otherwise sometimes scrollbars end up with
+ client_windows not being resized to the proper size (ReportBuilder
+ shows this extremely well).
+
+2006-10-30 Chris Toshok <[EMAIL PROTECTED]>
+
* XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
for non-WS_EX_APPWINDOW windows. This is what keeps them from
showing up in the gnome taskbar. Fixes bug #79790.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-10-31 00:26:54 UTC (rev 67166)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-10-31 01:15:47 UTC (rev 67167)
@@ -1325,11 +1325,8 @@
}
hwnd =
Hwnd.GetObjectFromWindow(xevent.AnyEvent.window);
- if (hwnd == null) {
- if (xevent.type == XEventName.Expose) {
- }
+ if (hwnd == null)
continue;
- }
switch (xevent.type) {
case XEventName.Expose:
@@ -2356,13 +2353,7 @@
}
lock (XlibLock) {
- EventMask whole_window_mask = SelectInputMask;
- /* if we're a toplevel form, we want
- * to know about user-driven resizes.
- * otherwise, ignore them. */
- if (!StyleSet (cp.Style, WindowStyles.WS_CHILD))
- whole_window_mask |=
EventMask.StructureNotifyMask;
- XSelectInput(DisplayHandle, hwnd.whole_window,
new IntPtr ((int)whole_window_mask));
+ XSelectInput(DisplayHandle, hwnd.whole_window,
new IntPtr ((int)(SelectInputMask | EventMask.StructureNotifyMask)));
XSelectInput(DisplayHandle, hwnd.client_window,
new IntPtr ((int)SelectInputMask));
if (StyleSet (cp.Style,
WindowStyles.WS_VISIBLE)) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches