Commit 6dbb153e authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winex11.drv: Call XFlush() right after XUngrabServer().

XGrabServer() stops the processing of other display connections until a XUngrabServer() call is actually processed by the X server. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fa0c84ae
......@@ -480,6 +480,7 @@ static BOOL X11DRV_PALETTE_BuildSharedMap( const PALETTEENTRY *sys_pal_template
palette_size = c_min + NB_RESERVED_COLORS;
XUngrabServer(gdi_display);
XFlush(gdi_display);
TRACE("adjusted size %i colorcells\n", palette_size);
}
......
......@@ -419,6 +419,7 @@ static LONG xrandr12_set_current_mode( int mode )
if (status != RRSetConfigSuccess)
{
XUngrabServer( gdi_display );
XFlush( gdi_display );
ERR("Failed to disable CRTC.\n");
pXRRFreeCrtcInfo( crtc_info );
pXRRFreeScreenResources( resources );
......@@ -440,6 +441,7 @@ static LONG xrandr12_set_current_mode( int mode )
crtc_info->rotation, crtc_info->outputs, crtc_info->noutput );
XUngrabServer( gdi_display );
XFlush( gdi_display );
pXRRFreeCrtcInfo( crtc_info );
pXRRFreeScreenResources( resources );
......
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