summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/platform/wayland/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/wayland/buffer.c b/src/platform/wayland/buffer.c
index b68621d..e465462 100644
--- a/src/platform/wayland/buffer.c
+++ b/src/platform/wayland/buffer.c
@@ -215,6 +215,9 @@ int apply_pending_geometry(struct wayland_surface *w)
w->base.scale_120 = w->scale_120;
w->logical_width = logical_w;
w->logical_height = logical_h;
+ /* The caret's logical rectangle depends on the scale. Send it again. */
+ if (rescaled && w->base.text_input_active)
+ wayland_surface_update_text_input(w);
#if YASL_HAS_EGL
if (w->egl_window && (resized || rescaled))
wl_egl_window_resize(w->egl_window, width, height, 0, 0);