From faa13d9ab16bcef3d7f660069e0639bfe3021fe3 Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Fri, 2 Sep 2016 14:37:27 +0900 Subject: [PATCH] cnp module: Fix build break on non-wayland platform @tizen_fix Change-Id: I58f83261c00b177f404e4b830ae1418ef9f493fa --- src/modules/copypasteUI_ctxpopup/copypaste.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.7.4