From aae2e00e3a36a81a37cc310c034af3cdc1ce427c Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Mon, 29 Nov 2010 16:32:06 +0900 Subject: [PATCH] disable window effect --- src/cbhm_main.c | 6 ++++++ src/xcnphandler.c | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/cbhm_main.c b/src/cbhm_main.c index 63f0a48..751bd47 100644 --- a/src/cbhm_main.c +++ b/src/cbhm_main.c @@ -79,6 +79,8 @@ static Evas_Object* create_win(void *data, const char *name) struct appdata *ad = (struct appdata *) data; Evas_Object *eo; int w, h; + Ecore_X_Display *dpy; + dpy = ecore_x_display_get(); eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) @@ -88,6 +90,10 @@ static Evas_Object* create_win(void *data, const char *name) ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); ad->root_w = w; ad->root_h = h; evas_object_resize(eo, w, h); + if (dpy) + { //disable window effect + utilx_set_window_effect_state(dpy, elm_win_xwindow_get(eo), 0); + } } return eo; diff --git a/src/xcnphandler.c b/src/xcnphandler.c index 1243764..a5a4721 100755 --- a/src/xcnphandler.c +++ b/src/xcnphandler.c @@ -211,7 +211,6 @@ int get_selection_content(void *data) AnyPropertyType, &cbtype, &cbformat, &cbitems, &cbsize, &cbbuf); XDeleteProperty(g_disp, g_evtwin, atomCBOut); -/* unesc = clipdrawer_get_plain_string_from_escaped(cbbuf); if (unesc != NULL) { @@ -233,11 +232,11 @@ int get_selection_content(void *data) } else unesc_len = 0; -*/ // add_to_storage_buffer(ad, cbbuf, cbitems); // DTRACE("len = %ld, data = %s\n", cbitems, cbbuf); +/* if (cbbuf != NULL) { unesc_len = strlen(cbbuf); @@ -269,12 +268,12 @@ int get_selection_content(void *data) else add_to_storage_buffer(ad, cbbuf, unesc_len); DTRACE("len = %ld, data = %s\n", unesc_len, cbbuf); +*/ /* FIXME : it needs two verification. 1. does the file exist? 2. dose the file wanted type? */ -/* if (!strncmp(unesc, "file://", 7) && (strcasestr(unesc,".png") || strcasestr(unesc,".jpg") || strcasestr(unesc,".bmp")) && check_regular_file(unesc+7)) @@ -286,7 +285,6 @@ int get_selection_content(void *data) add_to_storage_buffer(ad, unesc, unesc_len); DTRACE("len = %ld, data = %s\n", unesc_len, unesc); free(unesc); -*/ DTRACE("\n"); print_storage_buffer(); -- 2.7.4