Module: wine Branch: refs/heads/master Commit: 2136f3271589afca4c78c84fe503c0a83433ed45 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2136f3271589afca4c78c84f...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 4 20:49:53 2006 +0200
x11drv: Avoid redundant flushing of the thread display.
---
dlls/x11drv/event.c | 6 +----- dlls/x11drv/winpos.c | 3 --- 2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/dlls/x11drv/event.c b/dlls/x11drv/event.c index 98e40b8..2271cae 100644 --- a/dlls/x11drv/event.c +++ b/dlls/x11drv/event.c @@ -269,6 +269,7 @@ static int process_events( Display *disp 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 /* 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; diff --git a/dlls/x11drv/winpos.c b/dlls/x11drv/winpos.c index 5bf9368..f0fa3b8 100644 --- a/dlls/x11drv/winpos.c +++ b/dlls/x11drv/winpos.c @@ -671,9 +671,6 @@ BOOL X11DRV_set_window_pos( HWND hwnd, H wine_tsx11_unlock(); } } - wine_tsx11_lock(); - XFlush( display ); /* FIXME: should not be necessary */ - wine_tsx11_unlock(); } } WIN_ReleasePtr( win );