Commit 66e981ec authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

server: Make layered windows transparent for mouse messages.

parent 0d8e7983
......@@ -1252,7 +1252,7 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s
{
if (!input || !(win = input->capture))
{
if (!(win = msg->win) || !is_window_visible( win ))
if (!(win = msg->win) || !is_window_visible( win ) || is_window_transparent( win ))
{
if (input) win = window_from_point( input->desktop, data->x, data->y );
}
......
......@@ -135,6 +135,7 @@ extern void destroy_thread_windows( struct thread *thread );
extern int is_child_window( user_handle_t parent, user_handle_t child );
extern int is_top_level_window( user_handle_t window );
extern int is_window_visible( user_handle_t window );
extern int is_window_transparent( user_handle_t window );
extern int make_window_active( user_handle_t window );
extern struct thread *get_window_thread( user_handle_t handle );
extern user_handle_t window_from_point( struct desktop *desktop, int x, int y );
......
......@@ -602,6 +602,13 @@ int is_window_visible( user_handle_t window )
return is_visible( win );
}
int is_window_transparent( user_handle_t window )
{
struct window *win = get_user_object( window, USER_WINDOW );
if (!win) return 0;
return (win->ex_style & (WS_EX_LAYERED|WS_EX_TRANSPARENT)) == (WS_EX_LAYERED|WS_EX_TRANSPARENT);
}
/* check if point is inside the window */
static inline int is_point_in_window( struct window *win, int x, int y )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment