correctly set/update wl opaque regions
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 01:27:18 +0000 (20:27 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 01:44:01 +0000 (20:44 -0500)
src/bin/e_comp_wl.c

index 0d0c99f521959665371546a817f39f4d700bcfc7..f96989fed1557df455b3e18d76e803626ddb8229 100644 (file)
@@ -1030,6 +1030,7 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, st
    /* trap for clients which are being deleted */
    if (e_object_is_del(E_OBJECT(ec))) return;
 
+   eina_tiler_clear(ec->comp_data->pending.opaque);
    if (region_resource)
      {
         Eina_Tiler *tmp;
@@ -1040,12 +1041,6 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, st
 
         eina_tiler_union(ec->comp_data->pending.opaque, tmp);
      }
-   else
-     {
-        eina_tiler_clear(ec->comp_data->pending.opaque);
-        eina_tiler_rect_add(ec->comp_data->pending.opaque, 
-                            &(Eina_Rectangle){0, 0, ec->client.w, ec->client.h});
-     }
 }
 
 static void