diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-08-29 11:13:54 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-08-29 11:13:54 +0100 |
commit | 91d6bff8b83cea34d348172db56dd28baafbda80 (patch) | |
tree | 5e275e0eba9cc056652abcfc478df2f4532fa5f5 /window.c | |
parent | 5cdccf78a1baa5757a42e78e6b89266f89a37034 (diff) | |
parent | 7d3bf6453ec43f03ff98231c5ced5a2979550f84 (diff) | |
download | rtmux-91d6bff8b83cea34d348172db56dd28baafbda80.tar.gz rtmux-91d6bff8b83cea34d348172db56dd28baafbda80.tar.bz2 rtmux-91d6bff8b83cea34d348172db56dd28baafbda80.zip |
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -632,6 +632,8 @@ window_add_pane(struct window *w, struct window_pane *other, int before, void window_lost_pane(struct window *w, struct window_pane *wp) { + log_debug("%s: @%u pane %%%u", __func__, w->id, wp->id); + if (wp == marked_pane.wp) server_clear_marked(); @@ -1292,23 +1294,18 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s, } int -window_pane_outside(struct window_pane *wp) +window_pane_visible(struct window_pane *wp) { struct window *w = wp->window; + if (wp->layout_cell == NULL) + return (0); + if (wp->xoff >= w->sx || wp->yoff >= w->sy) - return (1); + return (0); if (wp->xoff + wp->sx > w->sx || wp->yoff + wp->sy > w->sy) - return (1); - return (0); -} - -int -window_pane_visible(struct window_pane *wp) -{ - if (wp->layout_cell == NULL) return (0); - return (!window_pane_outside(wp)); + return (1); } u_int |