Module: wine Branch: master Commit: 749574a298b43584e0a7955779158aa3ab767a08 URL: https://gitlab.winehq.org/wine/wine/-/commit/749574a298b43584e0a7955779158aa...
Author: Rémi Bernon rbernon@codeweavers.com Date: Fri May 3 14:18:59 2024 +0200
winex11: Don't call x11drv_xinput2_disable for foreign windows.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56429 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56607
---
dlls/winex11.drv/window.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 68b34fa868d..b5061463b10 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -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 ); if (xwin) { - if (!already_destroyed) - { - x11drv_xinput2_disable( data->display, xwin ); - XSelectInput( data->display, xwin, 0 ); - } - + if (!already_destroyed) XSelectInput( data->display, xwin, 0 ); XDeleteContext( data->display, xwin, winContext ); NtUserRemoveProp( data->hwnd, foreign_window_prop ); }