diff options
author | jbm <jbm@cvs.openbsd.org> | 2001-04-16 15:00:50 +0000 |
---|---|---|
committer | jbm <jbm@cvs.openbsd.org> | 2001-04-16 15:00:50 +0000 |
commit | cc045b16e91ed47998e23c26a6c6277145b0c057 (patch) | |
tree | 2a17810d074d5e2ecc076fb3a1737f8276bba15c /sys/dev/wscons/wsdisplay.c | |
parent | be99bbc1d5690437db894fb5bb2b7c11840fcf90 (diff) |
Don't remove the mouse cursor when output occurs on a virtual terminal different
from the current one.
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index dccf596d0f2..1f49627e85c 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.21 2001/04/14 13:25:09 aaron Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.22 2001/04/16 15:00:49 jbm Exp $ */ /* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */ /* @@ -1265,11 +1265,13 @@ wsdisplaystart(tp) if (!(scr->scr_flags & SCR_GRAPHICS)) { KASSERT(WSSCREEN_HAS_EMULATOR(scr)); - if ((scr == sc->sc_focus) && (IS_SEL_EXISTS(sc->sc_focus))) - /* hide a potential selection */ - remove_selection(sc); - /* hide a potential mouse cursor */ - mouse_hide(sc); + if (scr == sc->sc_focus) { + if (IS_SEL_EXISTS(sc->sc_focus)) + /* hide a potential selection */ + remove_selection(sc); + /* hide a potential mouse cursor */ + mouse_hide(sc); + } (*scr->scr_dconf->wsemul->output)(scr->scr_dconf->wsemulcookie, buf, n, 0); } |