summaryrefslogtreecommitdiff
path: root/sys/src/cmd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-11-25 04:31:30 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-11-25 04:31:30 +0100
commitd7303af06d4725f7116d5dfa0d69603a5a1cd2b6 (patch)
tree15af69cbd58829b08d89a78bdeb9808feb69dcf1 /sys/src/cmd
parent9ef4ba83f62761b517db23a16e2f61e5861aae23 (diff)
rio: allow reading the image of a hidden window thru the window file
Diffstat (limited to 'sys/src/cmd')
-rw-r--r--sys/src/cmd/rio/xfid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index 4100794a3..a213bcffb 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -796,11 +796,11 @@ xfidread(Xfid *x)
case Qwindow:
i = w->i;
- r = w->screenr;
- if(i == nil || Dx(r)<=0){
+ if(i == nil){
filsysrespond(x->fs, x, &fc, Enowindow);
return;
}
+ r = i->r;
goto caseImage;
case Qscreen: