2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Fri, 25 Jul 2008 10:31:02 +0000 (10:31 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Fri, 25 Jul 2008 10:31:02 +0000 (10:31 -0000)
* XplatUIX11.cs: Non Client area is actually Client such in the
case of NotifyIcon, so double check WholeWindow == ClientWindow
when adding an expose.
[Fixes bugs #324237 and #357022]

svn path=/trunk/mcs/; revision=108755

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs

index 2b154263308c6d7484f50ab0d2144e11df02463d..f5ac02369f10a57562de43156c633f7d08aeb4b9 100644 (file)
@@ -1,3 +1,10 @@
+2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * XplatUIX11.cs: Non Client area is actually Client such in the 
+       case of NotifyIcon, so double check WholeWindow == ClientWindow 
+       when adding an expose.
+       [Fixes bugs #324237 and #357022]
+
 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
 
        * TableLayoutPanel.cs: Invalidate after layouting, so that we 
index 3021fa9b289b5f8e06470d4fb9934f03728907eb..0cb28b7269f29683b0e6229f4a6622adbc379d77 100644 (file)
@@ -1953,7 +1953,7 @@ namespace System.Windows.Forms {
                                MoveResizeWindow (DisplayHandle, hwnd.client_window, rect.X, rect.Y, rect.Width, rect.Height);
                        }
 
-                       AddExpose (hwnd, false, 0, 0, hwnd.Width, hwnd.Height);
+                       AddExpose (hwnd, hwnd.WholeWindow == hwnd.ClientWindow, 0, 0, hwnd.Width, hwnd.Height);
                }
                #endregion      // Private Methods
 
@@ -4572,7 +4572,7 @@ namespace System.Windows.Forms {
 
                        hwnd = Hwnd.ObjectFromHandle(handle);
 
-                       AddExpose (hwnd, false, 0, 0, hwnd.Width, hwnd.Height);
+                       AddExpose (hwnd, hwnd.WholeWindow == hwnd.ClientWindow, 0, 0, hwnd.Width, hwnd.Height);
                }
 
                internal override bool IsEnabled(IntPtr handle) {