From b8f2aa13a7fa9665d1dc57460a36965e43e254e3 Mon Sep 17 00:00:00 2001 From: Minseok Kim Date: Thu, 26 Jul 2012 16:58:51 +0900 Subject: [PATCH] [cbhm] fixed wrong item counting --- src/main.c | 1 + src/xhandler.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index d088d4a..dcbb8a4 100644 --- a/src/main.c +++ b/src/main.c @@ -115,6 +115,7 @@ static int app_create(void *data) if (!(ad->xhandler = init_xhandler(ad))) return EXIT_FAILURE; if (!(ad->screencapture = init_screencapture(ad))) return EXIT_FAILURE; if (!(ad->storage = init_storage(ad))) return EXIT_FAILURE; + slot_item_count_set(ad); set_selection_owner(ad, ECORE_X_SELECTION_CLIPBOARD, NULL); return 0; diff --git a/src/xhandler.c b/src/xhandler.c index 7ad5b03..f261b08 100644 --- a/src/xhandler.c +++ b/src/xhandler.c @@ -469,7 +469,7 @@ static Eina_Bool _xclient_msg_cb(void *data, int type, void *event) xd->atomUTF8String, 8, countbuf, - strlen(countbuf)); + strlen(countbuf)+1); } /* for OSP */ else if (strncmp("GET_ITEM", ev->data.b, 8) == 0) @@ -823,5 +823,5 @@ void slot_item_count_set(AppData *ad) xd->atomUTF8String, 8, countbuf, - strlen(countbuf)); + strlen(countbuf)+1); } -- 2.7.4