From 88cf76e18bebf765a064b2c2e1474650a072a686 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 30 Jan 2021 18:25:58 -0800 Subject: [PATCH] Remove redundant calls to XFlush (#325) Calls to flush_display_region() are responsible for calling XFlush() and it is pointless to follow them up with another call. --- src/bbtsub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bbtsub.c b/src/bbtsub.c index 2c95079..21a5b19 100644 --- a/src/bbtsub.c +++ b/src/bbtsub.c @@ -483,7 +483,6 @@ do_it_now: #ifdef XWINDOW XLOCK; if (in_display_segment(dstbase)) flush_display_region(dx, dty, w, h); - XFlush(currentdsp->display_id); XUNLOCK; #endif /* XWINDOW */ @@ -841,7 +840,6 @@ do_it_now: #ifdef XWINDOW XLOCK; if (in_display_segment(dstbase)) flush_display_region(dlx, dty, width, height); - XFlush(currentdsp->display_id); XUNLOCK; #endif /* XWINDOW */ @@ -1091,7 +1089,6 @@ do_it_now: #ifdef XWINDOW XLOCK; if (in_display_segment(dstbase)) flush_display_region(left, dty, width, height); - XFlush(currentdsp->display_id); XUNLOCK; #endif /* XWINDOW */