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: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fa0c84ae0b
commit
6dbb153ede
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue