Make pane offsets signed, needed for floating panes.

This commit is contained in:
nicm
2026-05-12 12:05:41 +00:00
parent 3d6c542e34
commit 18fced7e7f
5 changed files with 64 additions and 53 deletions

4
cmd.c
View File

@@ -775,9 +775,9 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp,
if (m->statusat == 0 && y >= m->statuslines)
y -= m->statuslines;
if (x < wp->xoff || x >= wp->xoff + wp->sx)
if ((int)x < wp->xoff || (int)x >= wp->xoff + (int)wp->sx)
return (-1);
if (y < wp->yoff || y >= wp->yoff + wp->sy)
if ((int)y < wp->yoff || (int)y >= wp->yoff + (int)wp->sy)
return (-1);
if (xp != NULL)