Alexandre Julliard : winex11: Reset the cursor window when re-creating the client window.
Alexandre Julliard
julliard at winehq.org
Thu Mar 6 11:08:34 CST 2008
Module: wine
Branch: master
Commit: 51d3d620cfa1e13d30eb9738676e9a9369579987
URL: http://source.winehq.org/git/wine.git/?a=commit;h=51d3d620cfa1e13d30eb9738676e9a9369579987
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 5 20:52:14 2008 +0100
winex11: Reset the cursor window when re-creating the client window.
---
dlls/winex11.drv/window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index b98c6d8..3f3ac99 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -246,6 +246,8 @@ static Window create_client_window( Display *display, struct x11drv_win_data *da
if (data->client_window)
{
+ struct x11drv_thread_data *thread_data = x11drv_thread_data();
+ if (thread_data->cursor_window == data->client_window) thread_data->cursor_window = None;
XDeleteContext( display, data->client_window, winContext );
XDestroyWindow( display, data->client_window );
}
More information about the wine-cvs
mailing list