diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-03-31 21:40:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-03-31 21:40:00 +0000 |
commit | 81afb95692ba9a0f41cf0644d854e921ba57625f (patch) | |
tree | 131239f82293e13ba9cf6750e7c430a402e36073 /usr.bin/tmux | |
parent | 7b9952db856107818b01adc32252b76e8122a2f7 (diff) |
Use hex constants rather than shifts for mouse events and flags, pointed
out by Marcel Partap.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tmux.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index c6e206ad2d5..a9706b8fdee 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.441 2014/03/31 21:39:31 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.442 2014/03/31 21:39:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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: |