mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
x,y -> px,py.
This commit is contained in:
parent
5e36d52651
commit
84df87011c
@ -538,12 +538,12 @@ have_event:
|
||||
/* Try the pane borders if not zoomed. */
|
||||
if (~s->curw->window->flags & WINDOW_ZOOMED) {
|
||||
TAILQ_FOREACH(wp, &s->curw->window->panes, entry) {
|
||||
if ((wp->xoff + wp->sx == x &&
|
||||
wp->yoff <= 1 + y &&
|
||||
wp->yoff + wp->sy >= y) ||
|
||||
(wp->yoff + wp->sy == y &&
|
||||
wp->xoff <= 1 + x &&
|
||||
wp->xoff + wp->sx >= x))
|
||||
if ((wp->xoff + wp->sx == px &&
|
||||
wp->yoff <= 1 + py &&
|
||||
wp->yoff + wp->sy >= py) ||
|
||||
(wp->yoff + wp->sy == py &&
|
||||
wp->xoff <= 1 + px &&
|
||||
wp->xoff + wp->sx >= px))
|
||||
break;
|
||||
}
|
||||
if (wp != NULL)
|
||||
@ -552,7 +552,7 @@ have_event:
|
||||
|
||||
/* Otherwise try inside the pane. */
|
||||
if (where == NOWHERE) {
|
||||
wp = window_get_active_at(s->curw->window, x, y);
|
||||
wp = window_get_active_at(s->curw->window, px, py);
|
||||
if (wp != NULL)
|
||||
where = PANE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user