mirror of
https://github.com/tmux/tmux.git
synced 2026-05-31 14:46:17 +00:00
If a pane is outside the window, treat as obscured.
This commit is contained in:
@@ -191,6 +191,14 @@ screen_write_pane_is_obscured(struct screen_write_ctx *ctx)
|
|||||||
}
|
}
|
||||||
ctx->flags |= SCREEN_WRITE_CHECKED_IF_OBSCURED;
|
ctx->flags |= SCREEN_WRITE_CHECKED_IF_OBSCURED;
|
||||||
|
|
||||||
|
if (ctx->wp->xoff < 0 ||
|
||||||
|
ctx->wp->yoff < 0 ||
|
||||||
|
ctx->wp->xoff + ctx->wp->sx >= ctx->wp->window->sx ||
|
||||||
|
ctx->wp->yoff + ctx->wp->sy >= ctx->wp->window->sy) {
|
||||||
|
ctx->flags |= SCREEN_WRITE_OBSCURED;
|
||||||
|
return (1);
|
||||||
|
}
|
||||||
|
|
||||||
while ((wp = TAILQ_PREV(wp, window_panes, zentry)) != NULL) {
|
while ((wp = TAILQ_PREV(wp, window_panes, zentry)) != NULL) {
|
||||||
if ((wp->flags & PANE_FLOATING) &&
|
if ((wp->flags & PANE_FLOATING) &&
|
||||||
((wp->yoff >= ctx->wp->yoff &&
|
((wp->yoff >= ctx->wp->yoff &&
|
||||||
|
|||||||
Reference in New Issue
Block a user