tc0300_notification: fix comparing null values 13/156613/1
authorJunSeok, Kim <juns.kim@samsung.com>
Thu, 19 Oct 2017 06:18:15 +0000 (15:18 +0900)
committerJunSeok, Kim <juns.kim@samsung.com>
Thu, 19 Oct 2017 06:22:21 +0000 (15:22 +0900)
change elm_win to native_win elm_win to native_win because
tw->elm_win has null value.

Change-Id: I0a31c3aeb204557e32005a2a60b7ae1f411dd194

src/0300_notification.c

index 64bda5f..aefa7f8 100644 (file)
@@ -125,21 +125,21 @@ _tc_check_stack(E_TC *tc, E_TC_Win *bottom, E_TC_Win *middle, E_TC_Win *top)
 
    EINA_LIST_FOREACH(list, l, tw)
      {
-        if (top->elm_win == tw->elm_win)
-        {
-           t_layer = tw->layer;
-           continue;
-        }
-        else if (middle->elm_win == tw->elm_win)
-        {
-           m_layer = tw->layer;
-           continue;
-        }
-        else if (bottom->elm_win == tw->elm_win)
-        {
-           b_layer = tw->layer;
-           continue;
-        }
+        if (top->native_win == tw->native_win)
+          {
+             t_layer = tw->layer;
+             continue;
+          }
+        else if (middle->native_win == tw->native_win)
+          {
+             m_layer = tw->layer;
+             continue;
+          }
+        else if (bottom->native_win == tw->native_win)
+          {
+             b_layer = tw->layer;
+             continue;
+          }
      }
 
    EINA_SAFETY_ON_FALSE_GOTO(b_layer <= m_layer, failed);