summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-03-17 21:34:35 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-03-17 21:34:35 +0000
commit38cc6c95158dfd8b8f55e95742ee0cdf9b209ecf (patch)
treec93f744439f59edf80837fc03b2137f0efcaf132 /usr.bin/tmux
parentef477e3eecf0dedea46af141c608c04e55476a07 (diff)
Need to call recalculate_sizes() when changing window with the mouse,
from marcel partap.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 9dd835cda71..e6a71ce68ab 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.69 2012/03/17 18:24:07 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.70 2012/03/17 21:34:34 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -282,16 +282,19 @@ server_client_check_mouse(
options_get_number(oo, "mouse-select-window")) {
if (mouse->b == MOUSE_UP && c->last_mouse.b != MOUSE_UP) {
status_set_window_at(c, mouse->x);
+ recalculate_sizes();
return;
}
if (mouse->b & MOUSE_45) {
if ((mouse->b & MOUSE_BUTTON) == MOUSE_1) {
session_previous(c->session, 0);
server_redraw_session(s);
+ recalculate_sizes();
}
if ((mouse->b & MOUSE_BUTTON) == MOUSE_2) {
session_next(c->session, 0);
server_redraw_session(s);
+ recalculate_sizes();
}
return;
}