aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2017-10-23 16:07:54 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2017-10-23 16:07:54 +0200
commit970f3e9ed7debf60b290c22e73ed167232129a36 (patch)
tree4f4f9a3554b64eada1b016ab78da16872a8805ac /src/cmd/samterm
parented9a25d9020b6b46f235760956f98bc37abb26d1 (diff)
downloadplan9port-970f3e9ed7debf60b290c22e73ed167232129a36.tar.gz
plan9port-970f3e9ed7debf60b290c22e73ed167232129a36.tar.bz2
plan9port-970f3e9ed7debf60b290c22e73ed167232129a36.zip
samterm: change focus on mouseover
Diffstat (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index adeffeed..c37fa08b 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -108,6 +108,8 @@ threadmain(int argc, char *argv[])
continue;
}
nwhich = flwhich(mousep->xy);
+ if(nwhich && nwhich!=which)
+ current(nwhich);
scr = which && ptinrect(mousep->xy, which->scroll);
if(mousep->buttons)
flushtyping(1);