version 1.282, 2019/05/08 18:07:12 |
version 1.283, 2019/05/12 18:16:33 |
|
|
key_code key; |
key_code key; |
struct timeval tv; |
struct timeval tv; |
struct style_range *sr; |
struct style_range *sr; |
enum { NOTYPE, MOVE, DOWN, UP, DRAG, WHEEL, DOUBLE, TRIPLE } type; |
enum { NOTYPE, |
|
MOVE, |
|
DOWN, |
|
UP, |
|
DRAG, |
|
WHEEL, |
|
DOUBLE, |
|
TRIPLE } type = NOTYPE; |
enum { NOWHERE, |
enum { NOWHERE, |
PANE, |
PANE, |
STATUS, |
STATUS, |
STATUS_LEFT, |
STATUS_LEFT, |
STATUS_RIGHT, |
STATUS_RIGHT, |
STATUS_DEFAULT, |
STATUS_DEFAULT, |
BORDER } where; |
BORDER } where = NOWHERE; |
|
|
type = NOTYPE; |
|
where = NOWHERE; |
|
|
|
log_debug("%s mouse %02x at %u,%u (last %u,%u) (%d)", c->name, m->b, |
log_debug("%s mouse %02x at %u,%u (last %u,%u) (%d)", c->name, m->b, |
m->x, m->y, m->lx, m->ly, c->tty.mouse_drag_flag); |
m->x, m->y, m->lx, m->ly, c->tty.mouse_drag_flag); |
|
|
|
|
struct mouse_event *m = &event->m; |
struct mouse_event *m = &event->m; |
struct session *s = c->session; |
struct session *s = c->session; |
struct winlink *wl; |
struct winlink *wl; |
struct window *w; |
|
struct window_pane *wp; |
struct window_pane *wp; |
struct window_mode_entry *wme; |
struct window_mode_entry *wme; |
struct timeval tv; |
struct timeval tv; |
|
|
if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0) |
if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0) |
goto out; |
goto out; |
wl = s->curw; |
wl = s->curw; |
w = wl->window; |
|
|
|
/* Update the activity timer. */ |
/* Update the activity timer. */ |
if (gettimeofday(&c->activity_time, NULL) != 0) |
if (gettimeofday(&c->activity_time, NULL) != 0) |