From 00b603fa09027ae7ce3203786d942f625ef83cf8 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:03:17 +0200 Subject: Very partial fix for "IME problem under wayland" in fltk-rs see: https://github.com/fltk-rs/fltk-rs/issues/1539 --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers') diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 92e9530b9..19ab37d01 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -911,9 +911,9 @@ void text_input_commit_string(void *data, struct zwp_text_input_v3 *zwp_text_inp Fl_Window *win = Fl_Wayland_Window_Driver::surface_to_window(surface); set_event_xy(win); Fl::e_is_click = 0; + Fl_Wayland_Screen_Driver::next_marked_length = 0; Fl::handle(FL_KEYDOWN, win); zwp_text_input_v3_commit(zwp_text_input_v3); - Fl_Wayland_Screen_Driver::next_marked_length = 0; Fl::compose_state = 0; } -- cgit v1.2.3