[ros-diffs] [tkreuzer] 47339: [WIN32K] When destroying a window, generate a mouse move message, so that the underlying window is notified about the mouse position and can update the pointer if neccessary. Fixes bug #4499 and bug #3893 See issue #4499 for more details.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon May 24 14:57:04 CEST 2010


Author: tkreuzer
Date: Mon May 24 14:57:03 2010
New Revision: 47339

URL: http://svn.reactos.org/svn/reactos?rev=47339&view=rev
Log:
[WIN32K]
When destroying a window, generate a mouse move message, so that the underlying window is notified about the mouse position and can update the pointer if neccessary. Fixes bug #4499 and bug #3893

See issue #4499 for more details.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/window.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/window.c?rev=47339&r1=47338&r2=47339&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Mon May 24 14:57:03 2010
@@ -2674,6 +2674,7 @@
    PWND Wnd;
    HWND hWnd;
    PTHREADINFO ti;
+   MSG msg;
 
    ASSERT_REFS_CO(Window); // FIXME: temp hack?
 
@@ -2810,6 +2811,13 @@
          }
       }
    }
+
+    /* Generate mouse move message for the next window */
+    msg.message = WM_MOUSEMOVE;
+    msg.wParam = IntGetSysCursorInfo()->ButtonsDown;
+    msg.lParam = MAKELPARAM(gpsi->ptCursor.x, gpsi->ptCursor.y);
+    msg.pt = gpsi->ptCursor;
+    MsqInsertSystemMessage(&msg);
 
    if (!IntIsWindow(Window->hSelf))
    {




More information about the Ros-diffs mailing list