Commit 749574a2 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11: Don't call x11drv_xinput2_disable for foreign windows.

parent b0a5fa50
...@@ -1807,12 +1807,7 @@ static void destroy_whole_window( struct x11drv_win_data *data, BOOL already_des ...@@ -1807,12 +1807,7 @@ static void destroy_whole_window( struct x11drv_win_data *data, BOOL already_des
Window xwin = (Window)NtUserGetProp( data->hwnd, foreign_window_prop ); Window xwin = (Window)NtUserGetProp( data->hwnd, foreign_window_prop );
if (xwin) if (xwin)
{ {
if (!already_destroyed) if (!already_destroyed) XSelectInput( data->display, xwin, 0 );
{
x11drv_xinput2_disable( data->display, xwin );
XSelectInput( data->display, xwin, 0 );
}
XDeleteContext( data->display, xwin, winContext ); XDeleteContext( data->display, xwin, winContext );
NtUserRemoveProp( data->hwnd, foreign_window_prop ); NtUserRemoveProp( data->hwnd, foreign_window_prop );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment