Alexandre Julliard : winex11: Correctly initialize the cursor in a newly-created thread.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 06:51:45 CST 2008


Module: wine
Branch: master
Commit: 30f068a0b3e69b86dabc014276b70d7d56f9f845
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=30f068a0b3e69b86dabc014276b70d7d56f9f845

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Feb 25 13:32:45 2008 +0100

winex11: Correctly initialize the cursor in a newly-created thread.

---

 dlls/winex11.drv/x11drv.h      |    1 +
 dlls/winex11.drv/x11drv_main.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 97d1a27..de77925 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -711,6 +711,7 @@ extern int X11DRV_AcquireClipboard(HWND hWndClipWindow);
 extern void X11DRV_ResetSelectionOwner(void);
 extern void X11DRV_SetFocus( HWND hwnd );
 extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr );
+extern void X11DRV_SetCursor( struct tagCURSORICONINFO *lpCursor );
 extern BOOL X11DRV_ClipCursor( LPCRECT clip );
 extern void X11DRV_InitKeyboard( Display *display );
 extern void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWORD time,
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c
index f4f5f06..32f6437 100644
--- a/dlls/winex11.drv/x11drv_main.c
+++ b/dlls/winex11.drv/x11drv_main.c
@@ -659,6 +659,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
     data->last_focus = 0;
     data->selection_wnd = 0;
     TlsSetValue( thread_data_tls_index, data );
+    X11DRV_SetCursor( NULL );
     return data;
 }
 




More information about the wine-cvs mailing list