2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 28 Nov 2006 18:28:34 +0000 (18:28 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 28 Nov 2006 18:28:34 +0000 (18:28 -0000)
* XplatUIX11-new.cs:
* X11Hwnd.cs:
- Added RequestAdditionalWM_NCMessages for windows to
  opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.

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

mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/XplatUIX11-new.cs

index d28c4fe1afe90981c6ce10baa6ae69939e970504..bf9c675a46e48d2c8561e4b4e7affa0f3601fc2d 100644 (file)
@@ -1,3 +1,10 @@
+2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
+       
+       * XplatUIX11-new.cs:
+       * X11Hwnd.cs:
+       - Added RequestAdditionalWM_NCMessages for windows to 
+         opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
+
 2006-11-28  Chris Toshok  <toshok@ximian.com>
 
        * X11Display.cs (XEventThread): move to a polling strategy again,
index 02b9a6f94332d1e31dc2d1f66b744687a3ba465e..b2ef606599f14e21b77f743e758095cf01860020 100644 (file)
@@ -794,8 +794,15 @@ namespace System.Windows.Forms.X11Internal {
                        PerformNCCalc ();
                        display.SendMessage (Handle, Msg.WM_WINDOWPOSCHANGED, IntPtr.Zero, IntPtr.Zero);
                        InvalidateNC ();
+               }\r
+\r
+               [MonoTODO]\r
+               public void RequestAdditionalWM_NCMessages (bool hover, bool leave)\r
+               {\r
+                       // Missing messages won't crash anything so just don't generate them for the moment.\r
+                       // throw new NotImplementedException( );\r
                }
-
+               
                public void FrameExtents (out int left, out int top)
                {
                        IntPtr                  actual_atom;
index c70a9cfb72d4d43e8f4351fe3e205434702bc57a..5279120717966bcab7b454c3641fd69ecc8eff8c 100644 (file)
@@ -687,8 +687,17 @@ namespace System.Windows.Forms.X11Internal {
                {
                        display.Flush ();
                        ThreadQueue(Thread.CurrentThread).PostQuitState = true;
+               }\r
+\r
+               [MonoTODO]\r
+               internal override void RequestAdditionalWM_NCMessages (IntPtr handle, bool hover, bool leave)\r
+               {\r
+                       X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);\r
+\r
+                       if (hwnd != null)\r
+                               hwnd.RequestAdditionalWM_NCMessages (hover, leave);\r
                }
-
+               
                internal override void RequestNCRecalc (IntPtr handle)
                {
                        X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);