mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 09:46:21 +00:00
[win32k]
- SetWindowPos should send WM_MOUSEMOVE only when the window under the cursor changes - Fixes moving winamp window svn path=/trunk/; revision=53554
This commit is contained in:
parent
245ed2469c
commit
c9fe2fcba4
1 changed files with 3 additions and 1 deletions
|
@ -950,6 +950,7 @@ co_WinPosSetWindowPos(
|
||||||
HDC Dc;
|
HDC Dc;
|
||||||
RECTL CopyRect;
|
RECTL CopyRect;
|
||||||
PWND Ancestor;
|
PWND Ancestor;
|
||||||
|
BOOL bPointerInWindow;
|
||||||
|
|
||||||
ASSERT_REFS_CO(Window);
|
ASSERT_REFS_CO(Window);
|
||||||
|
|
||||||
|
@ -963,6 +964,7 @@ co_WinPosSetWindowPos(
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
bPointerInWindow = IntPtInWindow(Window, gpsi->ptCursor.x, gpsi->ptCursor.y);
|
||||||
|
|
||||||
WinPos.hwnd = Window->head.h;
|
WinPos.hwnd = Window->head.h;
|
||||||
WinPos.hwndInsertAfter = WndInsertAfter;
|
WinPos.hwndInsertAfter = WndInsertAfter;
|
||||||
|
@ -1329,7 +1331,7 @@ co_WinPosSetWindowPos(
|
||||||
IntNotifyWinEvent(EVENT_OBJECT_LOCATIONCHANGE, pWnd, OBJID_WINDOW, CHILDID_SELF, WEF_SETBYWNDPTI);
|
IntNotifyWinEvent(EVENT_OBJECT_LOCATIONCHANGE, pWnd, OBJID_WINDOW, CHILDID_SELF, WEF_SETBYWNDPTI);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IntPtInWindow(Window, gpsi->ptCursor.x, gpsi->ptCursor.y))
|
if(bPointerInWindow != IntPtInWindow(Window, gpsi->ptCursor.x, gpsi->ptCursor.y))
|
||||||
{
|
{
|
||||||
/* Generate mouse move message */
|
/* Generate mouse move message */
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue