ecore-evas-wayland-shm: Check for fullscreen and override windows when
authorChris Michael <cp.michael@samsung.com>
Thu, 8 Oct 2015 17:37:30 +0000 (13:37 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 8 Oct 2015 17:37:30 +0000 (13:37 -0400)
processing updates

Summary: When processing render updates, we should be checking if the
Ecore_Evas "should be visible" property is set.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 3495a22..9b3eccb 100644 (file)
@@ -58,23 +58,15 @@ _ecore_evas_wl_common_render_updates_process(Ecore_Evas *ee, Eina_List *updates)
 {
    int rend = 0;
 
-   if ((ee->visible) && (updates))
+   if (((ee->visible) && (ee->draw_ok)) ||
+       ((ee->should_be_visible) && (ee->prop.fullscreen)) ||
+       ((ee->should_be_visible) && (ee->prop.override)))
      {
-        /* Eina_List *l = NULL; */
-        /* Eina_Rectangle *r; */
-        /* Ecore_Evas_Engine_Wl_Data *wdata; */
-
-        /* if (!(wdata = ee->engine.data)) return 0; */
-
-        /* EINA_LIST_FOREACH(updates, l, r) */
-        /*   ecore_wl_window_damage(wdata->win, */
-        /*                          r->x, r->y, r->w, r->h); */
-
-        /* ecore_wl_window_commit(wdata->win); */
-        /* ecore_wl_flush(); */
-
-        _ecore_evas_idle_timeout_update(ee);
-        rend = 1;
+        if (updates)
+          {
+             _ecore_evas_idle_timeout_update(ee);
+             rend = 1;
+          }
      }
    else
      evas_norender(ee->evas);