winex11: Reset the cursor window when re-creating the client window.

oldstable
Alexandre Julliard 2008-03-05 20:52:14 +01:00
parent 22f146f011
commit 51d3d620cf
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}