disable window effect
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 29 Nov 2010 07:32:06 +0000 (16:32 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 29 Nov 2010 07:32:06 +0000 (16:32 +0900)
src/cbhm_main.c
src/xcnphandler.c

index 63f0a48..751bd47 100644 (file)
@@ -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;
index 1243764..a5a4721 100755 (executable)
@@ -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();