aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-03-06 11:53:46 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-03-06 11:53:46 +0000
commitf15fcb6a1d79b67db0aa65a8c0a40c1c15e49720 (patch)
treee3483a408ecd8f9dc30a884fe717760f030a2af8 /tmux.h
parent8c0edcbfa3bd78bb8adaba13aad29a06d8988de8 (diff)
downloadrtmux-f15fcb6a1d79b67db0aa65a8c0a40c1c15e49720.tar.gz
rtmux-f15fcb6a1d79b67db0aa65a8c0a40c1c15e49720.tar.bz2
rtmux-f15fcb6a1d79b67db0aa65a8c0a40c1c15e49720.zip
Use hex constants rather than shifts for mouse events and flags, pointed out by
Marcel Partap.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tmux.h b/tmux.h
index 68790a05..28351d0f 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1130,14 +1130,14 @@ LIST_HEAD(tty_terms, tty_term);
#define MOUSE_WHEEL_DOWN 1
/* Mouse events. */
-#define MOUSE_EVENT_DOWN (1 << 0)
-#define MOUSE_EVENT_DRAG (1 << 1)
-#define MOUSE_EVENT_UP (1 << 2)
-#define MOUSE_EVENT_CLICK (1 << 3)
-#define MOUSE_EVENT_WHEEL (1 << 4)
+#define MOUSE_EVENT_DOWN 0x1
+#define MOUSE_EVENT_DRAG 0x2
+#define MOUSE_EVENT_UP 0x4
+#define MOUSE_EVENT_CLICK 0x8
+#define MOUSE_EVENT_WHEEL 0x10
/* Mouse flags. */
-#define MOUSE_RESIZE_PANE (1 << 0)
+#define MOUSE_RESIZE_PANE 0x1
/*
* Mouse input. When sent by xterm: