summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/rio.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-05-14 18:14:08 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-05-14 18:14:08 +0200
commit81f867f4fb3d7fd495be3282a01d2e4a9b1a56fd (patch)
tree7131790858f57c3a7758dc150e50f2cae833b2ec /sys/src/cmd/rio/rio.c
parent06a0dc5319435aa6d6e1152a789fb9d7dcba98de (diff)
rio: only the current window may change the cursor, fix typo screen->r vs w->screenr in drag()
Diffstat (limited to 'sys/src/cmd/rio/rio.c')
-rw-r--r--sys/src/cmd/rio/rio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index c715f22ca..1a1c54002 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -964,7 +964,7 @@ drag(Window *w)
p = mouse->xy;
riosetcursor(inborder(r, p) ? corners[whichcorner(r, p)] : nil);
menuing = FALSE;
- if(mouse->buttons!=0 || !goodrect(r) || eqrect(r, screen->r)){
+ if(mouse->buttons!=0 || !goodrect(r) || eqrect(r, w->screenr)){
flushimage(display, 1);
while(mouse->buttons)
readmouse(mousectl);