subsurface: fix not inserting subsurface to pending state first. 35/246935/3
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 22 Sep 2020 05:08:38 +0000 (14:08 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 9 Nov 2020 02:49:38 +0000 (11:49 +0900)
The z-order is double-buffered. So, subsurface has to be inserted to
pending list first, not to active list.

Change-Id: Id76563920c511f8321d11c3e44bdfd80fd605f62

src/bin/e_comp_wl_subsurface.c

index ab85fd25b20be1507b1dad9015781cca1840e4ea..572841655af5a5be1604f504f36977fea6c4f923 100644 (file)
@@ -1037,8 +1037,8 @@ e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl_
    if (epc->comp_data)
    {
        /* append this client to the parents subsurface list */
-       epc->comp_data->sub.list =
-           eina_list_append(epc->comp_data->sub.list, ec);
+       epc->comp_data->sub.list_pending =
+           eina_list_append(epc->comp_data->sub.list_pending, ec);
        epc->comp_data->sub.list_changed = EINA_TRUE;
    }