summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/xfid.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-11-29 17:51:57 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-11-29 17:51:57 +0100
commitc931e96364ec6e587f9137e768ad0f9b70e2e9fa (patch)
tree4c3e76f35ec4ced4e40d6751ade59286c712c699 /sys/src/cmd/rio/xfid.c
parent1d93a5628adc0f08463fe4272dc88fb0f61e631d (diff)
rio: avoid redrawing window text on resize for programs using libdraw
As long as the client as the mouse file open and maintains reading the winname file of the window after a resize we will avoid drawing the text frame on a resize as it will be overdrawn by the client. This reduces flicker on resize somewhat for slow systems.
Diffstat (limited to 'sys/src/cmd/rio/xfid.c')
-rw-r--r--sys/src/cmd/rio/xfid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index 3985bea00..27054f8ef 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -345,6 +345,7 @@ xfidclose(Xfid *x)
case Qmouse:
w->resized = FALSE;
w->mouseopen = FALSE;
+ w->winnameread = FALSE;
if(w->i != nil)
wsendctlmesg(w, Refresh, w->i->r, nil);
break;
@@ -776,6 +777,7 @@ xfidread(Xfid *x)
break;
}
t = estrdup(w->name);
+ w->winnameread = TRUE;
goto Text;
case Qwindow: