elm_win: sync indicator state with WM explictly
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 15 Nov 2016 11:56:31 +0000 (20:56 +0900)
committerJinYong Park <j4939.park@samsung.com>
Tue, 22 Nov 2016 10:46:58 +0000 (19:46 +0900)
On wayland, indicator is handled by both elementary and window manager
Because there is no logic to set the initial state of the indicator when it is
constructing, this patch makes indiciator state clear both elementary
and window manager

Change-Id: Id43e8aacb1bfd019864ce3b9bfae36efaffb320e
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/lib/elm_win.c

index 8c87f7c2414a774fb0bd4195eaea69dbe1bc991f..7a60aba6c63e8473cf1042316796258d9e798734 100644 (file)
@@ -4518,6 +4518,13 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
           (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, obj);
      }
 
+// TIZEN_ONLY(20161114): Sync the state of indicator with window manager
+#ifdef HAVE_ELEMENTARY_WAYLAND
+   if (sd->wl.win)
+     ecore_wl_indicator_visible_type_set(sd->wl.win, ECORE_WL_INDICATOR_VISIBLE_TYPE_SHOWN);
+#endif
+// END
+
    sd->evas = ecore_evas_get(sd->ee);
 
    evas_object_color_set(obj, 0, 0, 0, 0);