Fix issue character is committed twice when IME is slow 45/222345/1 submit/tizen/20200117.053242
authorInHong Han <inhong1.han@samsung.com>
Tue, 7 Jan 2020 07:00:29 +0000 (16:00 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 14 Jan 2020 01:38:58 +0000 (01:38 +0000)
Change-Id: If94eeeae69b3e73667f178082525a8333a494ed7
(cherry picked from commit fafba2d88ed857c940213a365bf384783040fc4e)

ism/extras/wayland_immodule/wayland_imcontext.c

index f11561f..1a99d92 100644 (file)
@@ -3394,6 +3394,11 @@ wayland_im_context_filter_event(Ecore_IMF_Context    *ctx,
                             break;
                     }
 
+                    if (imcontext->last_key_event_filter.serial < serial) {
+                        LOGW("Timeout occured");
+                        ret = EINA_TRUE;
+                    }
+
                     wl_event_queue_destroy(queue);
                 }