diff --git a/resize.c b/resize.c index 11036d92..06899ce2 100644 --- a/resize.c +++ b/resize.c @@ -1,4 +1,4 @@ -/* $Id: resize.c,v 1.25 2010-06-22 23:26:18 tcunha Exp $ */ +/* $Id: resize.c,v 1.26 2010-12-06 21:57:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -113,11 +113,8 @@ recalculate_sizes(void) ssy = s->sy; } } - if (ssx == UINT_MAX || ssy == UINT_MAX) { - w->flags |= WINDOW_HIDDEN; + if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - } - w->flags &= ~WINDOW_HIDDEN; limit = options_get_number(&w->options, "force-width"); if (limit != 0 && ssx > limit) diff --git a/tmux.h b/tmux.h index 1c6bdccb..82cb275b 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.583 2010-12-06 21:50:24 nicm Exp $ */ +/* $Id: tmux.h,v 1.584 2010-12-06 21:57:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -841,9 +841,8 @@ struct window { int flags; #define WINDOW_BELL 0x1 -#define WINDOW_HIDDEN 0x2 -#define WINDOW_ACTIVITY 0x4 -#define WINDOW_REDRAW 0x8 +#define WINDOW_ACTIVITY 0x2 +#define WINDOW_REDRAW 0x4 struct options options; diff --git a/tty.c b/tty.c index 313bd4f7..1ffec9bc 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.196 2010-10-24 00:45:57 tcunha Exp $ */ +/* $Id: tty.c,v 1.197 2010-12-06 21:57:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -547,7 +547,7 @@ tty_write(void (*cmdfn)( if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW) return; - if (wp->window->flags & WINDOW_HIDDEN || !window_pane_visible(wp)) + if (!window_pane_visible(wp)) return; for (i = 0; i < ARRAY_LENGTH(&clients); i++) {