Module: wine Branch: master Commit: 6c44228c1f673f4147153db53247b2dc700ae24e URL: https://gitlab.winehq.org/wine/wine/-/commit/6c44228c1f673f4147153db53247b2d...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Jan 22 23:25:33 2024 +0100
winex11: Sync with gdi_display before closing the threads display.
---
dlls/winex11.drv/x11drv_main.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 1b9555bcfbf..25a36cb8c0c 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -721,6 +721,7 @@ void X11DRV_ThreadDetach(void) vulkan_thread_detach(); if (data->xim) XCloseIM( data->xim ); if (data->font_set) XFreeFontSet( data->display, data->font_set ); + XSync( gdi_display, False ); /* make sure XReparentWindow requests have completed before closing the thread display */ XCloseDisplay( data->display ); free( data ); /* clear data in case we get re-entered from user32 before the thread is truly dead */