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 /cmd-select-pane.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 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index ab3f0b3f..d112f919 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -58,8 +58,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_ctx *ctx) } } - if (wp->flags & PANE_HIDDEN) { - ctx->error(ctx, "pane %d is hidden", data->pane); + if (!window_pane_visible(wp)) { + ctx->error(ctx, "pane %d is not visible", data->pane); return (-1); } window_set_active_pane(wl->window, wp); |