mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Use hex constants rather than shifts for mouse events and flags, pointed
out by Marcel Partap.
This commit is contained in:
parent
0e4d1d8493
commit
fcdae6925a
12
tmux.h
12
tmux.h
@ -1133,14 +1133,14 @@ LIST_HEAD(tty_terms, tty_term);
|
|||||||
#define MOUSE_WHEEL_DOWN 1
|
#define MOUSE_WHEEL_DOWN 1
|
||||||
|
|
||||||
/* Mouse events. */
|
/* Mouse events. */
|
||||||
#define MOUSE_EVENT_DOWN (1 << 0)
|
#define MOUSE_EVENT_DOWN 0x1
|
||||||
#define MOUSE_EVENT_DRAG (1 << 1)
|
#define MOUSE_EVENT_DRAG 0x2
|
||||||
#define MOUSE_EVENT_UP (1 << 2)
|
#define MOUSE_EVENT_UP 0x4
|
||||||
#define MOUSE_EVENT_CLICK (1 << 3)
|
#define MOUSE_EVENT_CLICK 0x8
|
||||||
#define MOUSE_EVENT_WHEEL (1 << 4)
|
#define MOUSE_EVENT_WHEEL 0x10
|
||||||
|
|
||||||
/* Mouse flags. */
|
/* Mouse flags. */
|
||||||
#define MOUSE_RESIZE_PANE (1 << 0)
|
#define MOUSE_RESIZE_PANE 0x1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mouse input. When sent by xterm:
|
* Mouse input. When sent by xterm:
|
||||||
|
Loading…
Reference in New Issue
Block a user