diff options
author | Russ Cox <rsc@swtch.com> | 2012-09-23 22:01:56 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-09-23 22:01:56 -0400 |
commit | 37f8ed2410ad5cbd46eda00a77f8bf4950bcf544 (patch) | |
tree | 9b95f2c2cb48cc00cfeefb6fdceb228cd7daa2bf /src/cmd/acme/fns.h | |
parent | 9dbe4a0df903ee76bf72fcaff43dea5bb5bf3f75 (diff) | |
download | plan9port-37f8ed2410ad5cbd46eda00a77f8bf4950bcf544.tar.gz plan9port-37f8ed2410ad5cbd46eda00a77f8bf4950bcf544.tar.bz2 plan9port-37f8ed2410ad5cbd46eda00a77f8bf4950bcf544.zip |
acme: mouse movement for Del
If the mouse was in the tag of the old window,
it was most likely pointing at Del. If bringing up a
new window from below and not moving the mouse
somewhere else, adjust it so that it ends up pointing
at Del in the replacement window's tag too.
This makes it easy to Del a sequence of windows in
a column, from top to bottom.
http://www.youtube.com/watch?v=ET8w6RT6u5M
R=r
http://codereview.appspot.com/6558047
Diffstat (limited to 'src/cmd/acme/fns.h')
-rw-r--r-- | src/cmd/acme/fns.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/acme/fns.h b/src/cmd/acme/fns.h index 8738d2d5..af063445 100644 --- a/src/cmd/acme/fns.h +++ b/src/cmd/acme/fns.h @@ -22,10 +22,11 @@ void new(Text*, Text*, Text*, int, int, Rune*, int); void undo(Text*, Text*, Text*, int, int, Rune*, int); void scrsleep(uint); void savemouse(Window*); -void restoremouse(Window*); +int restoremouse(Window*); void clearmouse(void); void allwindows(void(*)(Window*, void*), void*); uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*); +void movetodel(Window*); Window* errorwin(Mntdir*, int); Window* errorwinforwin(Window*); |