commit | 93a4e1eed3ca7d8cb2415c689c617ea462dd6718 | [log] [tgz] |
---|---|---|
author | Dmitry Timoshkov <dmitry@codeweavers.com> | Wed Oct 27 21:55:00 2004 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Oct 27 21:55:00 2004 +0000 |
tree | 17b4565adae5ac7bdd9c43a9327aeb75d01ba660 | |
parent | 085ef06bd5b974b7e872c36fe8c0792e4df62018 [diff] [blame] |
Take into account window visibility when searching for a target for a hardware mouse message.
diff --git a/server/queue.c b/server/queue.c index 7946099..d711769 100644 --- a/server/queue.c +++ b/server/queue.c
@@ -1083,7 +1083,8 @@ { 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;