From 7daf34038862378914ad9a4128c1f31a4a978f8e Mon Sep 17 00:00:00 2001 From: Ian Osgood Date: Sun, 19 Mar 2006 11:31:26 -0800 Subject: [PATCH] Use XCBFlush not XCBSync --- neko/xcbneko.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neko/xcbneko.c b/neko/xcbneko.c index 5eff1ce..a10b9e1 100644 --- a/neko/xcbneko.c +++ b/neko/xcbneko.c @@ -509,7 +509,7 @@ void InitBitmapAndGCs(void) { /* later: XCBFreePixmap( c, bitmap ); */ /* later: XCBFreeGC( c, gc ); */ - XCBSync( xc, NULL ); + XCBFlush( xc ); } void @@ -697,7 +697,7 @@ InitScreen( char *DisplayName, char *theGeometry, char *theTitle, Bool iconicSta InitBitmapAndGCs(); - XCBSync(xc, NULL); + XCBFlush(xc); } @@ -744,7 +744,7 @@ SetNekoState( int SetValue ) } /* FillRct.c */ -/* Xlib does merging of requests, but the Sync and frequent DrawGC changes +/* Xlib does merging of requests, but the Flush and frequent DrawGC changes defeat this mechanism */ void @@ -767,7 +767,7 @@ DrawNeko( int x, int y, XCBGCONTEXT DrawGC ) XCBPolyFillRectangle( xc, drawable, DrawGC, 1, &rect ); - XCBSync( xc, NULL ); + XCBFlush( xc ); NekoLastX = x; NekoLastY = y; @@ -782,7 +782,7 @@ void RedrawNeko(void) { XCBPolyFillRectangle( xc, drawable, NekoLastGC, 1, &rect ); - XCBSync( xc, NULL ); + XCBFlush( xc ); } -- 2.34.1