mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
win32u: Detect a missed WM_LBUTTONUP in the size/move loop.
This commit is contained in:
parent
7ae55662a2
commit
1e21e82859
|
@ -788,6 +788,17 @@ static void sys_command_size_move( HWND hwnd, WPARAM wparam )
|
|||
{
|
||||
NtUserTranslateMessage( &msg, 0 );
|
||||
NtUserDispatchMessage( &msg );
|
||||
|
||||
/* It's possible that the window proc that handled the dispatch consumed a
|
||||
* WM_LBUTTONUP. Detect that and terminate the loop as if we'd gotten it. */
|
||||
if (!(NtUserGetKeyState( VK_LBUTTON ) & 0x8000))
|
||||
{
|
||||
DWORD last_pos = NtUserGetThreadInfo()->message_pos;
|
||||
pt.x = ((int)(short)LOWORD( last_pos ));
|
||||
pt.y = ((int)(short)HIWORD( last_pos ));
|
||||
break;
|
||||
}
|
||||
|
||||
continue; /* We are not interested in other messages */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue