Check if mouse-select-pane is ON not off when setting mouse flags,

reported by oga.
This commit is contained in:
Nicholas Marriott 2011-05-04 17:40:32 +00:00
parent 075816eb72
commit 7dddf56c08

View File

@ -469,7 +469,7 @@ server_client_reset_state(struct client *c)
mode = s->mode; mode = s->mode;
if ((mode & ALL_MOUSE_MODES) == 0) { if ((mode & ALL_MOUSE_MODES) == 0) {
if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL && if (TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry) != NULL &&
options_get_number(oo, "mouse-select-pane") == 0) options_get_number(oo, "mouse-select-pane"))
mode |= MODE_MOUSE_STANDARD; mode |= MODE_MOUSE_STANDARD;
else if (options_get_number(oo, "mouse-select-window")) else if (options_get_number(oo, "mouse-select-window"))
mode |= MODE_MOUSE_STANDARD; mode |= MODE_MOUSE_STANDARD;