Checking iconified window
authorSinJae Lee <sinjae4b.lee@samsung.com>
Wed, 18 Oct 2017 06:51:31 +0000 (15:51 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Tue, 24 Oct 2017 02:36:29 +0000 (11:36 +0900)
Change-Id: I32d58f75d0872e7729a43279582280e24f98b08e

watch-control/src/control.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 18b46b9..b4a7fd0
@@ -241,7 +241,13 @@ static Eina_Bool __iconify_state_changed(void *data, int type, void *event)
        Ecore_Wl_Event_Window_Iconify_State_Change *ev =
                        (Ecore_Wl_Event_Window_Iconify_State_Change *)event;
 
-       LOGI("Iconify state changed, %d, %d", ev->iconified, EINA_TRUE);
+       if(ev->win != ecore_wl_window_id_get(elm_win_wl_window_get(__win)))
+               return ECORE_CALLBACK_PASS_ON;
+
+       LOGI("Iconify state changed, win(%d) is %s",
+                       ev->win,
+                       ev->iconified ? "iconified" : "uniconified");
+
        if (ev->iconified == EINA_FALSE && __iconified) {
                __manual_render_start();
                __iconified = false;