diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-01-20 11:25:46 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-01-20 11:25:46 +0100 |
| commit | 02d416b0b62748e4e859c001c05b37d640fdcb8f (patch) | |
| tree | 8b170dbd52c3db1247170d5c614f0e75aad161b2 | |
| parent | 2a58560b7d8f5c2ab4ed6ec5aefc386176eb4c6d (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.cxx | 2 |
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; |
