From 97bf5af238205c2aa158be813f495994f5f4b09c Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 29 Nov 2016 10:23:42 +0900 Subject: [PATCH] Disable images in clipboard Change-Id: I536aaf31f0739d59893d93f0fa92a3aa2b88e618 Signed-off-by: Jihoon Kim --- src/ise.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ise.cpp b/src/ise.cpp index 164ab96..bb48da5 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -905,9 +905,14 @@ on_input_mode_changed(const sclchar *key_value, sclulong key_event, sclint key_t static void show_cbhm() { #ifdef HAVE_CBHM - int cbhm_ret = cbhm_show(cbhm_handle); - if (cbhm_ret != CBHM_ERROR_NONE) - LOGW("cbhm show error : %d\n", cbhm_ret); + int ret; + ret = cbhm_selection_type_set(cbhm_handle, CBHM_SEL_TYPE_TEXT); + if (ret != CBHM_ERROR_NONE) + LOGW("Failed to set selection type in cbhm. error : %d\n", ret); + + ret = cbhm_show(cbhm_handle); + if (ret != CBHM_ERROR_NONE) + LOGW("cbhm show error : %d\n", ret); else LOGD("Show cbhm\n"); #endif -- 2.7.4