user32: Allow activating the desktop window.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b9a9fe4a04
commit
ae153a5c2c
@ -1871,7 +1871,6 @@ static LRESULT handle_internal_message( HWND hwnd, UINT msg, WPARAM wparam, LPAR
|
||||
if (is_desktop_window( hwnd )) return 0;
|
||||
return WIN_SetStyle(hwnd, wparam, lparam);
|
||||
case WM_WINE_SETACTIVEWINDOW:
|
||||
if (is_desktop_window( hwnd )) return 0;
|
||||
if (!wparam && GetForegroundWindow() == hwnd) return 0;
|
||||
return (LRESULT)SetActiveWindow( (HWND)wparam );
|
||||
case WM_WINE_KEYBOARD_LL_HOOK:
|
||||
@ -2645,7 +2644,7 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
|
||||
hwndTop = GetParent( hwndTop );
|
||||
}
|
||||
|
||||
if (hwndTop && hwndTop != GetDesktopWindow())
|
||||
if (hwndTop)
|
||||
{
|
||||
LONG ret = SendMessageW( msg->hwnd, WM_MOUSEACTIVATE, (WPARAM)hwndTop,
|
||||
MAKELONG( hittest, msg->message ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user