From 02d416b0b62748e4e859c001c05b37d640fdcb8f Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 20 Jan 2025 11:25:46 +0100 Subject: [PATCH] Attempt to improve member function Fl_Wayland_Screen_Driver::insertion_point_location() This makes the IM aware of the cursor movement to the right after having committed text. --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 47cd8da2e..50329d17b 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -643,7 +643,7 @@ static void send_commit(struct zwp_text_input_v3 *zwp_text_input_v3) { void Fl_Wayland_Screen_Driver::insertion_point_location(int x, int y, int height) { //printf("insertion_point_location %dx%d\n",x,y); Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver(); - if (scr_driver->seat->text_input && !current_pre_edit && + if (scr_driver->seat->text_input /*&& !current_pre_edit*/ && (x != previous_cursor_x || y != previous_cursor_y || height != previous_cursor_h)) { previous_cursor_x = x; previous_cursor_y = y; -- GitLab