diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-14 07:23:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-14 07:23:36 +0000 |
commit | fe20c0d89ef5b8581c28067496f0f4c545d55ef8 (patch) | |
tree | e3283e2030d865de1025215bb8527636c78966b8 /screen-redraw.c | |
parent | 4a9b01eb0d328f13a03f967759bfd76d749da17f (diff) | |
download | rtmux-fe20c0d89ef5b8581c28067496f0f4c545d55ef8.tar.gz rtmux-fe20c0d89ef5b8581c28067496f0f4c545d55ef8.tar.bz2 rtmux-fe20c0d89ef5b8581c28067496f0f4c545d55ef8.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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index b95a5928..952cb37a 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -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); |