Alexandre Julliard : winex11: Force setting the cursor again on the first mouse event in case the initial setting failed .
Module: wine Branch: stable Commit: b4af4b1a16094658461312e335a3a126fa3315b1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4af4b1a16094658461312e335... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Sep 30 17:07:24 2010 +0200 winex11: Force setting the cursor again on the first mouse event in case the initial setting failed. (cherry picked from commit 536fc57091a80135ac1d6a3fceda3e7a87389897) --- dlls/winex11.drv/window.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 8957a44..5050609 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -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; }
participants (1)
-
Alexandre Julliard