version 1.51, 2009/10/11 00:53:14 |
version 1.52, 2009/10/11 07:01:10 |
|
|
struct timeval tv; |
struct timeval tv; |
struct key_binding *bd; |
struct key_binding *bd; |
struct keylist *keylist; |
struct keylist *keylist; |
|
struct mouse_event mouse; |
int key, status, xtimeout, mode, isprefix; |
int key, status, xtimeout, mode, isprefix; |
u_int i; |
u_int i; |
u_char mouse[3]; |
|
|
|
xtimeout = options_get_number(&c->session->options, "repeat-time"); |
xtimeout = options_get_number(&c->session->options, "repeat-time"); |
if (xtimeout != 0 && c->flags & CLIENT_REPEAT) { |
if (xtimeout != 0 && c->flags & CLIENT_REPEAT) { |
|
|
|
|
/* Process keys. */ |
/* Process keys. */ |
keylist = options_get_data(&c->session->options, "prefix"); |
keylist = options_get_data(&c->session->options, "prefix"); |
while (tty_keys_next(&c->tty, &key, mouse) == 0) { |
while (tty_keys_next(&c->tty, &key, &mouse) == 0) { |
if (c->session == NULL) |
if (c->session == NULL) |
return; |
return; |
|
|
|
|
/* Check for mouse keys. */ |
/* Check for mouse keys. */ |
if (key == KEYC_MOUSE) { |
if (key == KEYC_MOUSE) { |
if (options_get_number(oo, "mouse-select-pane")) { |
if (options_get_number(oo, "mouse-select-pane")) { |
window_set_active_at(w, mouse[1], mouse[2]); |
window_set_active_at(w, mouse.x, mouse.y); |
wp = w->active; |
wp = w->active; |
} |
} |
window_pane_mouse(wp, c, mouse[0], mouse[1], mouse[2]); |
window_pane_mouse(wp, c, &mouse); |
continue; |
continue; |
} |
} |
|
|