Take into account window visibility when searching for a target for a
authorDmitry Timoshkov <dmitry@codeweavers.com>
Wed, 27 Oct 2004 21:55:00 +0000 (21:55 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 27 Oct 2004 21:55:00 +0000 (21:55 +0000)
hardware mouse message.

server/queue.c

index 79460995578245412c9a641aee3cccda67b5dfb8..d71176985b69b6d29dc1452d5fc68e6c85e00f8d 100644 (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;