Fix N_SE-5897 : Task bar is disappeared when volume setting UG shows.
authorhongkwon <hhh.kwon@samsung.com>
Wed, 22 Aug 2012 04:23:20 +0000 (13:23 +0900)
committerhongkwon <hhh.kwon@samsung.com>
Wed, 22 Aug 2012 04:23:20 +0000 (13:23 +0900)
src/_button.c
src/_logic.c

index 47853a9..6275934 100755 (executable)
@@ -53,13 +53,14 @@ static void button_ug_destroy_cb(ui_gadget_h ug, void *priv)
        ug_destroy(ug);
        ad->ug = NULL;
 
+       ecore_x_netwm_window_type_set(elm_win_xwindow_get(ad->win), ECORE_X_WINDOW_TYPE_NOTIFICATION);
        utilx_set_window_opaque_state(ecore_x_display_get(), elm_win_xwindow_get(ad->win), UTILX_OPAQUE_STATE_OFF);
        _close_volume(ad);
 }
 
 ui_gadget_h create_button_ug(void *data)
 {
-       ui_gadget_h ug;
+       ui_gadget_h ug = NULL;
        struct ug_cbs cbs = {0};
        struct appdata *ad = (struct appdata *)data;
        retvm_if(ad == NULL, 0, "Invalid argument:appdata is NULL\n");
@@ -68,6 +69,7 @@ ui_gadget_h create_button_ug(void *data)
        cbs.destroy_cb = button_ug_destroy_cb;
        cbs.priv = (void *)data;
 
+       ecore_x_netwm_window_type_set(elm_win_xwindow_get(ad->win), ECORE_X_WINDOW_TYPE_NORMAL);
        utilx_set_window_opaque_state(ecore_x_display_get(), elm_win_xwindow_get(ad->win), UTILX_OPAQUE_STATE_ON);
        ug = ug_create(NULL, "setting-profile-efl", UG_MODE_FULLVIEW, NULL, &cbs);
 
index e8753fa..e6c8fe5 100755 (executable)
@@ -587,9 +587,9 @@ int _app_reset(bundle *b, void *data)
                _set_level(type);
 
                win = _add_window(PACKAGE);
-               elm_win_alpha_set(win, EINA_TRUE);
                retvm_if(win == NULL, -1, "Failed add window\n");
                ad->win = win;
+
                _grab_key(ad);
 
                pu = _add_popup(win, "volumebarstyle");
@@ -647,11 +647,12 @@ int _app_reset(bundle *b, void *data)
 int _app_pause(struct appdata *ad)
 {
        _D("%s\n", __func__);
-       ug_destroy_all();
        if(ad->ug){
+               ug_destroy_all();
                ad->ug = NULL;
-               _close_volume(ad);
+               ecore_x_netwm_window_type_set(elm_win_xwindow_get(ad->win), ECORE_X_WINDOW_TYPE_NOTIFICATION);
                utilx_set_window_opaque_state(ecore_x_display_get(), elm_win_xwindow_get(ad->win), UTILX_OPAQUE_STATE_OFF);
        }
+       _close_volume(ad);
        return 0;
 }