summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/rio/rio.c2
-rw-r--r--sys/src/cmd/rio/wind.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index 98d3dd10b..92fd60846 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -1220,8 +1220,8 @@ unhide(int j)
for(j=0; j<nwindow; j++)
if(window[j] == w){
incref(w);
- wcurrent(w);
wtopme(w);
+ wcurrent(w);
wclose(w);
return;
}
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index dc7d4a88a..337ed5bd2 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -1311,11 +1311,9 @@ wtop(Point pt)
w = wpointto(pt);
if(w){
- if(w->topped == topped)
- return nil;
incref(w);
- wcurrent(w);
wtopme(w);
+ wcurrent(w);
wclose(w);
}
return w;