summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-02 00:56:21 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-02 00:56:21 +0100
commit1bce6d0981bff66b122ca49d7251e7e627af3c40 (patch)
tree8513a1aaac0be85145ef09904d695e611a59f921
parent7d55aa8a32112a689ad0d41b876efe335d0b1115 (diff)
downloadplan9front-1bce6d0981bff66b122ca49d7251e7e627af3c40.tar.xz
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.
-rw-r--r--sys/src/libdraw/window.c6
1 files changed, 0 insertions, 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;
}