aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/render.c b/render.c
index fe2c29ba..b729ef40 100644
--- a/render.c
+++ b/render.c
@@ -35,6 +35,7 @@
#include "cursor-shape.h"
#include "grid.h"
#include "ime.h"
+#include "input.h"
#include "quirks.h"
#include "search.h"
#include "selection.h"
@@ -4856,6 +4857,13 @@ render_resize(struct terminal *term, int width, int height, uint8_t opts)
}
}
+ /* Ensure mouse col/row coordinates are still valid */
+ tll_foreach(term->wl->seats, it) {
+ struct seat *seat = &it->item;
+ if (seat->mouse_focus == term)
+ mouse_coord_pixel_to_cell(seat, term, seat->mouse.x, seat->mouse.y);
+ }
+
/*
* TODO: if we remove the selection_finalize() call above (i.e. if
* we start allowing selections to be ongoing across resizes), the