summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/layout-set.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-11-28 09:45:15 +0000
committernicm <nicm@openbsd.org>2019-11-28 09:45:15 +0000
commit4a8b0ea508ec8e7097113da4d3016e95759381f3 (patch)
treeee0ca6188d35c152446efbf4943c93b16eb957e8 /usr.bin/tmux/layout-set.c
parentStore xpixel/ypixel from TIOCGWINSZ and add formats. (diff)
downloadwireguard-openbsd-4a8b0ea508ec8e7097113da4d3016e95759381f3.tar.xz
wireguard-openbsd-4a8b0ea508ec8e7097113da4d3016e95759381f3.zip
Make a best effort to set xpixel and ypixel for each pane and add
formats for them.
Diffstat (limited to 'usr.bin/tmux/layout-set.c')
-rw-r--r--usr.bin/tmux/layout-set.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c
index b66f530b481..8f650286721 100644
--- a/usr.bin/tmux/layout-set.c
+++ b/usr.bin/tmux/layout-set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout-set.c,v 1.27 2019/07/15 18:25:07 nicm Exp $ */
+/* $OpenBSD: layout-set.c,v 1.28 2019/11/28 09:45:15 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -163,7 +163,7 @@ layout_set_even(struct window *w, enum layout_type type)
layout_print_cell(w->layout_root, __func__, 1);
- window_resize(w, lc->sx, lc->sy);
+ window_resize(w, lc->sx, lc->sy, -1, -1);
notify_window("window-layout-changed", w);
server_redraw_window(w);
}
@@ -262,7 +262,7 @@ layout_set_main_h(struct window *w)
layout_print_cell(w->layout_root, __func__, 1);
- window_resize(w, lc->sx, lc->sy);
+ window_resize(w, lc->sx, lc->sy, -1, -1);
notify_window("window-layout-changed", w);
server_redraw_window(w);
}
@@ -349,7 +349,7 @@ layout_set_main_v(struct window *w)
layout_print_cell(w->layout_root, __func__, 1);
- window_resize(w, lc->sx, lc->sy);
+ window_resize(w, lc->sx, lc->sy, -1, -1);
notify_window("window-layout-changed", w);
server_redraw_window(w);
}
@@ -458,7 +458,7 @@ layout_set_tiled(struct window *w)
layout_print_cell(w->layout_root, __func__, 1);
- window_resize(w, lc->sx, lc->sy);
+ window_resize(w, lc->sx, lc->sy, -1, -1);
notify_window("window-layout-changed", w);
server_redraw_window(w);
}