diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-24 18:45:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-24 18:45:46 +0000 |
commit | 0513e6f8301d2cd10c29abd1f02e4b320fa8c4c8 (patch) | |
tree | 348ee8d2118e627d2bfdc5c9854fc0c9808f4c87 /usr.bin/tmux/tmux.h | |
parent | 9e62d0dd00698cfd9774a335dcf3c043efa9ec92 (diff) |
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.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 40779e07474..3fb072b3d9c 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.680 2016/11/24 13:38:44 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.681 2016/11/24 18:45:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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), |