summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-01-20 11:25:46 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-01-20 11:25:46 +0100
commit02d416b0b62748e4e859c001c05b37d640fdcb8f (patch)
tree8b170dbd52c3db1247170d5c614f0e75aad161b2
parent2a58560b7d8f5c2ab4ed6ec5aefc386176eb4c6d (diff)
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.
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
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;