x11drv: Avoid redundant flushing of the thread display.
This commit is contained in:
parent
57b1ea618f
commit
2136f32715
|
@ -269,6 +269,7 @@ static int process_events( Display *display, ULONG_PTR mask )
|
|||
handler( hwnd, &event );
|
||||
wine_tsx11_lock();
|
||||
}
|
||||
XFlush( gdi_display );
|
||||
wine_tsx11_unlock();
|
||||
if (count) TRACE( "processed %d events\n", count );
|
||||
return count;
|
||||
|
@ -294,11 +295,6 @@ DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
|
|||
/* check whether only server queue handle was passed in */
|
||||
if (count < 2) flags &= ~MWMO_WAITALL;
|
||||
|
||||
wine_tsx11_lock();
|
||||
XFlush( gdi_display );
|
||||
XFlush( data->display );
|
||||
wine_tsx11_unlock();
|
||||
|
||||
data->process_event_count++;
|
||||
|
||||
if (process_events( data->display, mask )) ret = count;
|
||||
|
|
|
@ -671,9 +671,6 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
|
|||
wine_tsx11_unlock();
|
||||
}
|
||||
}
|
||||
wine_tsx11_lock();
|
||||
XFlush( display ); /* FIXME: should not be necessary */
|
||||
wine_tsx11_unlock();
|
||||
}
|
||||
}
|
||||
WIN_ReleasePtr( win );
|
||||
|
|
Loading…
Reference in New Issue