From: Thiep Ha Date: Fri, 2 Sep 2016 05:37:27 +0000 (+0900) Subject: cnp module: Fix build break on non-wayland platform X-Git-Tag: accepted/tizen/common/20160908.134648~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F86608%2F2;p=platform%2Fupstream%2Felementary.git cnp module: Fix build break on non-wayland platform @tizen_fix Change-Id: I58f83261c00b177f404e4b830ae1418ef9f493fa --- diff --git a/src/modules/copypasteUI_ctxpopup/copypaste.c b/src/modules/copypasteUI_ctxpopup/copypaste.c index 0493df1..d43b082 100644 --- a/src/modules/copypasteUI_ctxpopup/copypaste.c +++ b/src/modules/copypasteUI_ctxpopup/copypaste.c @@ -1160,7 +1160,9 @@ obj_hook(Evas_Object *obj) ext_mod->mouse_up = EINA_FALSE; ext_mod->mouse_down = EINA_FALSE; ext_mod->entry_move = EINA_FALSE; +#ifdef HAVE_ELEMENTARY_WAYLAND ext_mod->cbhm_init_done = EINA_FALSE; +#endif } // Clipboard item: can be removed by application elm_entry_context_menu_item_add(obj, "Clipboard", NULL, @@ -1275,6 +1277,7 @@ obj_longpress(Evas_Object *obj) Ecore_X_Atom first_cbhm_item_type = 0; Eina_Bool has_focused = EINA_FALSE; +#ifdef HAVE_ELEMENTARY_WAYLAND if (!ext_mod->cbhm_init_done) { if (ext_mod->cbhm_init_job) @@ -1285,6 +1288,7 @@ obj_longpress(Evas_Object *obj) cbhm_eldbus_init(obj); } +#endif /*update*/ if (ext_mod->viewport_rect)