Take into account window visibility when searching for a target for a

hardware mouse message.
This commit is contained in:
Dmitry Timoshkov 2004-10-27 21:55:00 +00:00 committed by Alexandre Julliard
parent 085ef06bd5
commit 93a4e1eed3
1 changed files with 2 additions and 1 deletions

View File

@ -1083,7 +1083,8 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s
{
if (!input || !(win = input->capture))
{
if (!(win = msg->win)) win = window_from_point( msg->x, msg->y );
if (!(win = msg->win) || !is_window_visible( win ))
win = window_from_point( msg->x, msg->y );
}
}
return win;