Commit 2136f327 authored by Alexandre Julliard's avatar Alexandre Julliard

x11drv: Avoid redundant flushing of the thread display.

parent 57b1ea61
...@@ -269,6 +269,7 @@ static int process_events( Display *display, ULONG_PTR mask ) ...@@ -269,6 +269,7 @@ static int process_events( Display *display, ULONG_PTR mask )
handler( hwnd, &event ); handler( hwnd, &event );
wine_tsx11_lock(); wine_tsx11_lock();
} }
XFlush( gdi_display );
wine_tsx11_unlock(); wine_tsx11_unlock();
if (count) TRACE( "processed %d events\n", count ); if (count) TRACE( "processed %d events\n", count );
return count; return count;
...@@ -294,11 +295,6 @@ DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, ...@@ -294,11 +295,6 @@ DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
/* check whether only server queue handle was passed in */ /* check whether only server queue handle was passed in */
if (count < 2) flags &= ~MWMO_WAITALL; if (count < 2) flags &= ~MWMO_WAITALL;
wine_tsx11_lock();
XFlush( gdi_display );
XFlush( data->display );
wine_tsx11_unlock();
data->process_event_count++; data->process_event_count++;
if (process_events( data->display, mask )) ret = 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 ...@@ -671,9 +671,6 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
wine_tsx11_unlock(); wine_tsx11_unlock();
} }
} }
wine_tsx11_lock();
XFlush( display ); /* FIXME: should not be necessary */
wine_tsx11_unlock();
} }
} }
WIN_ReleasePtr( win ); WIN_ReleasePtr( win );
......
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