aboutsummaryrefslogtreecommitdiff
path: root/tty-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-15 17:42:44 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-15 17:42:44 +0000
commit1e574bb70c2770fe5886fd7327966dfc543e3939 (patch)
tree21daf5e0c06f69035a1b2c43fe2a9d12e41c868f /tty-write.c
parent537c32b6b61d93b3489fee9cea26cd808125e265 (diff)
downloadrtmux-1e574bb70c2770fe5886fd7327966dfc543e3939.tar.gz
rtmux-1e574bb70c2770fe5886fd7327966dfc543e3939.tar.bz2
rtmux-1e574bb70c2770fe5886fd7327966dfc543e3939.zip
Get rid of the PANE_HIDDEN flag in favour of a function, and moving the
decision for whether or not a pane should be drawn out of the layout code and into the redraw code. This is needed for the new layout design, getting it in now to make that easier to work on.
Diffstat (limited to 'tty-write.c')
-rw-r--r--tty-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-write.c b/tty-write.c
index 14c0ec3d..5f13bbda 100644
--- a/tty-write.c
+++ b/tty-write.c
@@ -1,4 +1,4 @@
-/* $Id: tty-write.c,v 1.18 2009-06-25 16:47:00 nicm Exp $ */
+/* $Id: tty-write.c,v 1.19 2009-07-15 17:42:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -44,7 +44,7 @@ tty_vwrite_cmd(struct window_pane *wp, enum tty_cmd cmd, va_list ap)
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return;
- if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
+ if (wp->window->flags & WINDOW_HIDDEN || !window_pane_visible(wp))
return;
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {