Revert "subsurface: Raise a protocol error for a bad parent." 50/246850/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 4 Nov 2020 11:55:52 +0000 (20:55 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 4 Nov 2020 11:55:56 +0000 (20:55 +0900)
This reverts commit d3cbe02df50c847973c1ba147e0a112838af26c5.

Change-Id: Idf59aa2e6a94f6a53c24e2da4abaa161be6e6f44

src/bin/e_comp_wl_subsurface.c

index ab85fd25b20be1507b1dad9015781cca1840e4ea..e8ce3f54a4712f17baf70d1f2e808dc9f7a8c8ef 100644 (file)
@@ -736,18 +736,8 @@ _e_comp_wl_subcompositor_cb_subsurface_get(struct wl_client *client EINA_UNUSED,
 
    /* try to create a new subsurface */
    if (!e_comp_wl_subsurface_create(ec, epc, id, surface_resource))
-     {
-        if (_e_comp_wl_subsurface_circular_reference_check(ec, epc))
-          {
-             wl_resource_post_error(resource,
-                                    WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
-                                    "%s%d: wl_surface@%d is an ancestor of parent",
-                                    where, id, wl_resource_get_id(surface_resource));
-          }
-
-        ERR("Failed to create subsurface for surface %d",
-            wl_resource_get_id(surface_resource));
-     }
+     ERR("Failed to create subsurface for surface %d",
+         wl_resource_get_id(surface_resource));
 }
 
 static const struct wl_subcompositor_interface _e_subcomp_interface =