dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit aced1c4f38271a5674f0a037c2979fcf3b927b83
parent f74d88c8221347e57b33fe4969cbe5a0a8ce63c6
Author: Ross Mohn <rpmohn@waxandwane.org>
Date:   Tue, 23 Jun 2015 12:41:25 +0200

Bug fix for MOD after a mouse action

After a mouse action, the key_index needs to be set back to zero. You
can reproduce the bug by performing a mouse action, then trying to
perform a dvtm keyboard command. You'll see that the MOD key is not
matched with a key binding, so will print to the current terminal
instead.

Diffstat:
dvtm.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -1776,6 +1776,7 @@ main(int argc, char *argv[]) { keys[key_index++] = code; KeyBinding *binding = NULL; if (code == KEY_MOUSE) { + key_index = 0; handle_mouse(); } else if ((binding = keybinding(keys))) { unsigned int key_length = 0;