From: Jihoon Kim Date: Mon, 10 Jul 2023 06:15:48 +0000 (+0900) Subject: Add missing surface lock X-Git-Tag: accepted/tizen/unified/20230713.143459~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F295500%2F1;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Add missing surface lock Change-Id: I837807ae310ed08bf3fb6d14339e595389d3d365 Signed-off-by: Jihoon Kim --- diff --git a/src/e_mod_input_panel.c b/src/e_mod_input_panel.c index fc7b586..59a65d9 100644 --- a/src/e_mod_input_panel.c +++ b/src/e_mod_input_panel.c @@ -1036,7 +1036,10 @@ _e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *reso evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_DOWN, _e_ips_cb_mouse_down, ec); evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_MOVE, _e_ips_cb_mouse_move, ec); + g_mutex_lock(&cdata->surface_mutex); cdata->surface = surface_resource; + g_mutex_unlock(&cdata->surface_mutex); + cdata->shell.configure_send = NULL; cdata->shell.configure = _e_input_panel_surface_configure; cdata->shell.ping = NULL;