winex11: Force setting the cursor again on the first mouse event in case the initial setting failed.

This commit is contained in:
Alexandre Julliard 2010-09-30 17:07:24 +02:00
parent 666940902d
commit 536fc57091
1 changed files with 4 additions and 0 deletions

View File

@ -430,6 +430,10 @@ static void sync_window_cursor( struct x11drv_win_data *data )
SERVER_END_REQ;
set_window_cursor( data->hwnd, cursor );
/* setting the cursor can fail if the window isn't created yet */
/* so make sure that we try again once we receive a mouse event */
data->cursor = (HANDLE)~0u;
}