diff options
author | nicm <nicm> | 2019-05-03 16:51:29 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-03 16:51:29 +0000 |
commit | fc3d85e34bf323762ac000b44bfd4a6b33aad37c (patch) | |
tree | 8276d8c86d81f35e13196fdae560b30c805c83dd /cmd-resize-pane.c | |
parent | cf6075fb29fcd86f11a1f2cc6e906c62f39d4032 (diff) | |
download | rtmux-fc3d85e34bf323762ac000b44bfd4a6b33aad37c.tar.gz rtmux-fc3d85e34bf323762ac000b44bfd4a6b33aad37c.tar.bz2 rtmux-fc3d85e34bf323762ac000b44bfd4a6b33aad37c.zip |
Fix mouse positioning when the pane is not entirely visible.
Diffstat (limited to 'cmd-resize-pane.c')
-rw-r--r-- | cmd-resize-pane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c index 31474f3f..410a6257 100644 --- a/cmd-resize-pane.c +++ b/cmd-resize-pane.c @@ -148,7 +148,7 @@ cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m) y--; else if (m->statusat > 0 && y >= (u_int)m->statusat) y = m->statusat - 1; - ly = m->ly; lx = m->lx; + ly = m->ly + m->oy; lx = m->lx + m->ox; if (m->statusat == 0 && ly > 0) ly--; else if (m->statusat > 0 && ly >= (u_int)m->statusat) |