diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-06-26 18:14:34 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-06-26 18:14:34 +0200 |
commit | baf20a548b903bb76f94045645f9b679383bb728 (patch) | |
tree | c0e49b3806adb06e26b8460c8abf2e4d8a792722 /sys/src/cmd/rio/xfid.c | |
parent | b2efac468744ce418329438fe413cea578d35d61 (diff) |
rio: move the test if w is allowed to change cursor into wsetcursor()
the onscreen cursor shows the cursor of the current
focused window or the window it points at. if there
is no window, then we set the default cursor (nil).
Diffstat (limited to 'sys/src/cmd/rio/xfid.c')
-rw-r--r-- | sys/src/cmd/rio/xfid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c index 47100a5e2..f0bd5a488 100644 --- a/sys/src/cmd/rio/xfid.c +++ b/sys/src/cmd/rio/xfid.c @@ -333,8 +333,7 @@ xfidclose(Xfid *x) break; case Qcursor: w->cursorp = nil; - if(w==input) - wsetcursor(w, FALSE); + wsetcursor(w, FALSE); break; case Qkbd: w->kbdopen = FALSE; @@ -479,8 +478,7 @@ xfidwrite(Xfid *x) memmove(w->cursor.clr, x->data+2*4, 2*2*16); w->cursorp = &w->cursor; } - if(w==input) - wsetcursor(w, TRUE); + wsetcursor(w, TRUE); break; case Qlabel: |