From 8943e7510a4eb1b4f4c37d01a37983120eb38a10 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 31 Aug 2020 20:37:17 +0900 Subject: [PATCH] subsurface: Do not create below bg rectangle for argb window. This fixes a bug creating and destroying below bg rectangle repeatedly. Change-Id: Ibd310e88daaeb230872812a63b3d762ef4326a36 --- src/bin/e_comp_wl_subsurface.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_comp_wl_subsurface.c b/src/bin/e_comp_wl_subsurface.c index 81825efd3a..985b0ebbd4 100644 --- a/src/bin/e_comp_wl_subsurface.c +++ b/src/bin/e_comp_wl_subsurface.c @@ -202,9 +202,10 @@ _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec) } else { - if ((topmost->comp_data->sub.below_list) || - (topmost->comp_data->sub.below_list_pending) || - (_e_comp_wl_subsurface_video_has(topmost))) + if ((!topmost->argb) && + ((topmost->comp_data->sub.below_list) || + (topmost->comp_data->sub.below_list_pending) || + (_e_comp_wl_subsurface_video_has(topmost)))) { ELOGF("COMP", "it has below subsurfaces and video.", topmost); _e_comp_wl_subsurface_below_obj_create(topmost); -- 2.34.1