diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:42:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:42:44 +0000 |
commit | 1e574bb70c2770fe5886fd7327966dfc543e3939 (patch) | |
tree | 21daf5e0c06f69035a1b2c43fe2a9d12e41c868f /screen-redraw.c | |
parent | 537c32b6b61d93b3489fee9cea26cd808125e265 (diff) | |
download | rtmux-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 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index a2ca1dcd..79f3e9c4 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $Id: screen-redraw.c,v 1.38 2009-06-25 16:21:32 nicm Exp $ */ +/* $Id: screen-redraw.c,v 1.39 2009-07-15 17:42:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -35,6 +35,9 @@ screen_redraw_check_cell(struct client *c, u_int px, u_int py) return (0); TAILQ_FOREACH(wp, &w->panes, entry) { + if (!window_pane_visible(wp)) + continue; + /* Inside pane. */ if (px >= wp->xoff && px < wp->xoff + wp->sx && py >= wp->yoff && py < wp->yoff + wp->sy) @@ -104,7 +107,7 @@ screen_redraw_screen(struct client *c) /* Draw the panes. */ TAILQ_FOREACH(wp, &w->panes, entry) { - if (wp->flags & PANE_HIDDEN) + if (!window_pane_visible(wp)) continue; tty_reset(tty); |