diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-01 18:21:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-01 18:21:42 +0000 |
commit | b6450b167b089201381f02e1919f18df8881e082 (patch) | |
tree | e554848e2da982d486fa084bf2e19982b8eec894 /resize.c | |
parent | 6789b3367a9916d823abaeba0703e3388ffcf80a (diff) | |
download | rtmux-b6450b167b089201381f02e1919f18df8881e082.tar.gz rtmux-b6450b167b089201381f02e1919f18df8881e082.tar.bz2 rtmux-b6450b167b089201381f02e1919f18df8881e082.zip |
Basic horizontal splitting and layout management. Still some redraw and other
issues - particularly, don't mix with manual pane resizing and be careful when
viewing from multiple clients; generally cycling the layout a few times will
fix most problems. Getting this in for testing while I think about how to deal
with manual mode.
Split window as normal and cycle the layouts with C-b space. Some of the
layouts will work better when swap-pane comes along.
Diffstat (limited to 'resize.c')
-rw-r--r-- | resize.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: resize.c,v 1.19 2009-02-11 17:50:33 nicm Exp $ */ +/* $Id: resize.c,v 1.20 2009-04-01 18:21:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -45,11 +45,12 @@ void recalculate_sizes(void) { - struct session *s; - struct client *c; - struct window *w; - u_int i, j, ssx, ssy, has, limit; - int flag; + struct session *s; + struct client *c; + struct window *w; + struct window_pane *wp; + u_int i, j, ssx, ssy, has, limit; + int flag; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); @@ -133,5 +134,6 @@ recalculate_sizes(void) window_resize(w, ssx, ssy); server_redraw_window(w); + layout_refresh(w); } } |