From a734b41fda96ddf434873592d61585a68696f6ec Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 5 May 2011 10:03:05 +0000 Subject: [PATCH] Sync OpenBSD patchset 900: Check if mouse-select-pane is ON not off when setting mouse flags, reported by oga. --- server-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-client.c b/server-client.c index 1e567152..08654131 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $Id: server-client.c,v 1.57 2011-04-25 20:33:42 tcunha Exp $ */ +/* $Id: server-client.c,v 1.58 2011-05-05 10:03:05 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -468,7 +468,7 @@ server_client_reset_state(struct client *c) mode = s->mode; if ((mode & ALL_MOUSE_MODES) == 0) { 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; else if (options_get_number(oo, "mouse-select-window")) mode |= MODE_MOUSE_STANDARD;