1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winex11: Sync with gdi_display before closing the threads display.

This commit is contained in:
Rémi Bernon 2024-01-22 23:25:33 +01:00 committed by Alexandre Julliard
parent 1571c12129
commit 6c44228c1f

View file

@ -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 */