mirror of
https://github.com/tmux/tmux.git
synced 2026-06-04 09:20:26 +00:00
Fix bug: pane-border-status top, can't resize floating panes by dragging the border.
This commit is contained in:
7
window.c
7
window.c
@@ -658,17 +658,12 @@ window_get_active_at(struct window *w, u_int x, u_int y)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Floating - include top or or left border. */
|
/* Floating - include all borders. */
|
||||||
if ((int)x < xoff - 1 || x > xoff + sx)
|
if ((int)x < xoff - 1 || x > xoff + sx)
|
||||||
continue;
|
continue;
|
||||||
if (pane_status == PANE_STATUS_TOP) {
|
|
||||||
if ((int)y <= yoff - 2 || y > yoff + sy - 1)
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
if ((int)y < yoff - 1 || y > yoff + sy)
|
if ((int)y < yoff - 1 || y > yoff + sy)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return (wp);
|
return (wp);
|
||||||
}
|
}
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user