mirror of
https://github.com/tmux/tmux.git
synced 2025-11-06 20:16:04 +00:00
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.
This commit is contained in:
14
resize.c
14
resize.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user