aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/window-xlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index 93e237d..9aaaca2 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -847,6 +847,7 @@ static void runes_window_handle_button_event(RunesTerm *t, XButtonEvent *e)
}
loc = runes_window_get_mouse_position(t, e->x, e->y);
+ loc.row -= t->scr->grid->row_top;
sprintf(
response, "\033[M%c%c%c",
' ' + (status), ' ' + loc.col + 1, ' ' + loc.row + 1);