summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2018-09-11 09:39:28 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2018-09-11 09:39:28 +0100
commit84df87011c0cdf642209ed30bae5b37fb1889ae7 (patch)
tree28101aaa4535d53062e0e773a472397a835b5f9e /server-client.c
parent5e36d52651acced3bb1953cf4c0a80b1bc4a13fc (diff)
x,y -> px,py.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/server-client.c b/server-client.c
index 7bdd57e3..410b8c02 100644
--- a/server-client.c
+++ b/server-client.c
@@ -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;
}