From 1a8cb019a853a3c2f9f9acb81559b039ece51630 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 15 Dec 2020 19:48:57 +0900 Subject: [PATCH] e_comp_wl: remove the useless condition e_client_has_xwindow(ec) always returns false. Change-Id: I95f871d2925825e7d39f0f9e5d43c3a53e8a4032 --- src/bin/e_comp_wl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index d194d5e138..72b029e72d 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -4417,7 +4417,7 @@ e_comp_wl_surface_commit(E_Client *ec) ELOGF("COMP", "Try to unmap2. Call shell.unmap.", ec); ec->comp_data->shell.unmap(ec->comp_data->shell.surface); } - else if (e_client_has_xwindow(ec) || ec->internal || ec->comp_data->sub.data || + else if (ec->internal || ec->comp_data->sub.data || (ec == e_comp_wl->drag_client)) { ELOGF("COMP", "Try to unmap2. Hide window. internal:%d, sub:%p, drag:%d", @@ -4441,7 +4441,7 @@ e_comp_wl_surface_commit(E_Client *ec) ELOGF("COMP", "Try to map2. Call shell.map.", ec); ec->comp_data->shell.map(ec->comp_data->shell.surface); } - else if (e_client_has_xwindow(ec) || ec->internal || e_comp_wl_subsurface_can_show(ec) || + else if (ec->internal || e_comp_wl_subsurface_can_show(ec) || (ec == e_comp_wl->drag_client)) { ELOGF("COMP", "Try to map2. Show window. internal:%d, drag:%d", -- 2.34.1