Change how double and triple clicks works so that one or the other is

fired - a double click is no longer triggered on the way to a triple
click.
This commit is contained in:
nicm
2020-03-12 13:16:16 +00:00
parent b8b48e2e37
commit f7bc753442
2 changed files with 27 additions and 10 deletions

2
tmux.h
View File

@ -166,6 +166,7 @@ enum {
/* Mouse keys. */
KEYC_MOUSE, /* unclassified mouse event */
KEYC_DRAGGING, /* dragging in progress */
KEYC_DOUBLECLICK, /* double click complete */
KEYC_MOUSE_KEY(MOUSEMOVE),
KEYC_MOUSE_KEY(MOUSEDOWN1),
KEYC_MOUSE_KEY(MOUSEDOWN2),
@ -1547,6 +1548,7 @@ struct client {
struct event click_timer;
u_int click_button;
struct mouse_event click_event;
struct status_line status;