The mouse valid flag needs to be correct before we fire the dragging

callback, so move the callback outside of server_client_check_mouse and
use a new special key code to indicate it.
This commit is contained in:
nicm
2016-11-24 18:45:45 +00:00
parent 84319aa8f0
commit 6f8cedb1bc
2 changed files with 10 additions and 7 deletions

1
tmux.h
View File

@@ -135,6 +135,7 @@ enum {
/* Mouse keys. */
KEYC_MOUSE, /* unclassified mouse event */
KEYC_DRAGGING, /* dragging in progress */
KEYC_MOUSE_KEY(MOUSEDOWN1),
KEYC_MOUSE_KEY(MOUSEDOWN2),
KEYC_MOUSE_KEY(MOUSEDOWN3),