Fix so that when mouse-select-pane and mouse-select-window are both

enabled, clicking on the status line does not change the current
pane. From Romain Francoise.
This commit is contained in:
Nicholas Marriott 2011-12-24 08:26:59 +00:00
parent f308ba93aa
commit d655566ce7

View File

@ -320,6 +320,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
if (c->flags & CLIENT_READONLY)
return;
if (options_get_number(oo, "mouse-select-pane") &&
(!(options_get_number(oo, "status") &&
mouse->y + 1 == c->tty.sy)) &&
((!(mouse->b & MOUSE_DRAG) && mouse->b != MOUSE_UP) ||
wp->mode != &window_copy_mode)) {
/*