From 7a2cdd042e446d81894dda95560e4fedf13bdb6c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Jun 2017 03:27:48 -0400 Subject: fix mouse reporting with lines in scrollback --- src/window-xlib.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3