diff options
author | nicm <nicm> | 2014-03-31 21:39:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-03-31 21:39:59 +0000 |
commit | fcdae6925a08dc06860f9552ba7a300669f4a038 (patch) | |
tree | 1ed4ecc4449d9aa65f947e3676ff5cacde1b26a8 | |
parent | 0e4d1d8493564ce908b002d8e9dddc105184039e (diff) |
Use hex constants rather than shifts for mouse events and flags, pointed
out by Marcel Partap.
-rw-r--r-- | tmux.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1133,14 +1133,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: |