From 1bce6d0981bff66b122ca49d7251e7e627af3c40 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 2 Dec 2020 00:56:21 +0100 Subject: [PATCH] libdraw: do not force flushimage() on freescreen() This causes visual flashes of white in rio. If it is really needed (it is rare) it should be done by the caller. --- sys/src/libdraw/window.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/src/libdraw/window.c b/sys/src/libdraw/window.c index 2b6702e72..485e14652 100644 --- a/sys/src/libdraw/window.c +++ b/sys/src/libdraw/window.c @@ -96,12 +96,6 @@ Error: } a[0] = 'F'; BPLONG(a+1, s->id); - /* - * flush(1) because screen is likely holding last reference to - * window, and want it to disappear visually. - */ - if(flushimage(d, 1) < 0) - goto Error; free(s); return 1; }