Commit 10aa13a9 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Fix event coordinates mapping for the root window in the explorer process.

parent ee44c7c0
...@@ -788,6 +788,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev ) ...@@ -788,6 +788,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
flags |= RDW_ALLCHILDREN; flags |= RDW_ALLCHILDREN;
} }
else OffsetRect( &rect, virtual_screen_rect.left, virtual_screen_rect.top );
RedrawWindow( hwnd, &rect, 0, flags ); RedrawWindow( hwnd, &rect, 0, flags );
} }
......
...@@ -239,6 +239,11 @@ static HWND update_mouse_state( HWND hwnd, Window window, int x, int y, unsigned ...@@ -239,6 +239,11 @@ static HWND update_mouse_state( HWND hwnd, Window window, int x, int y, unsigned
x += data->whole_rect.left - data->client_rect.left; x += data->whole_rect.left - data->client_rect.left;
y += data->whole_rect.top - data->client_rect.top; y += data->whole_rect.top - data->client_rect.top;
} }
if (window == root_window)
{
x += virtual_screen_rect.left;
y += virtual_screen_rect.top;
}
pt->x = x; pt->x = x;
pt->y = y; pt->y = y;
if (GetWindowLongW( data->hwnd, GWL_EXSTYLE ) & WS_EX_LAYOUTRTL) if (GetWindowLongW( data->hwnd, GWL_EXSTYLE ) & WS_EX_LAYOUTRTL)
......
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