e_zone: fix return value of e_zone_visibility_calculate 48/308548/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 18 Mar 2024 00:20:35 +0000 (09:20 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 27 Mar 2024 08:52:30 +0000 (17:52 +0900)
There was a bug that the e_zone_visibility_calculate() returns EINA_TRUE even though
the visibility of windows was not changed at all.

So, we modified code to return EINA_TRUE only when there is a change of the window's
visibility.

Change-Id: I0b4585aefb36879dd33e1321a0fdcae7195d89e1

src/bin/e_zone.c

index 317979c64abdc7f78619063e4fa762044edf383c..cad4111e58facf39218e3273c3f754b25f366a90 100644 (file)
@@ -2613,8 +2613,11 @@ e_zone_visibility_calculate(E_Zone *zone)
                     }
                }
 
-             ec->visibility.changed = 0;
-             e_visibility_changed = EINA_TRUE;
+             if (ec->visibility.changed)
+               {
+                  ec->visibility.changed = 0;
+                  e_visibility_changed = EINA_TRUE;
+               }
           }
 
         changed_list = eina_list_free(changed_list);