Commit 860329d6 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Add missing X11 locking when setting the cursor.

parent 5e60175c
...@@ -301,12 +301,15 @@ static void queue_raw_mouse_message( UINT message, HWND hwnd, DWORD x, DWORD y, ...@@ -301,12 +301,15 @@ static void queue_raw_mouse_message( UINT message, HWND hwnd, DWORD x, DWORD y,
if (hwnd) if (hwnd)
{ {
Cursor xcursor;
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
if (data && cursor != data->cursor) if (data && cursor != data->cursor)
{ {
Cursor xcursor = get_x11_cursor( cursor ); wine_tsx11_lock();
if (xcursor) XDefineCursor( gdi_display, data->whole_window, xcursor ); if ((xcursor = get_x11_cursor( cursor )))
XDefineCursor( gdi_display, data->whole_window, xcursor );
data->cursor = cursor; data->cursor = cursor;
wine_tsx11_unlock();
} }
} }
} }
......
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