e_comp_wl: remove the useless condition 19/249619/3
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 15 Dec 2020 10:48:57 +0000 (19:48 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 16 Dec 2020 08:37:48 +0000 (08:37 +0000)
e_client_has_xwindow(ec) always returns false.

Change-Id: I95f871d2925825e7d39f0f9e5d43c3a53e8a4032

src/bin/e_comp_wl.c

index d194d5e138f47244aca9ee2ed2c04cb64b8d15d2..72b029e72d1eee39eeee6a1cc3519839afa2371d 100644 (file)
@@ -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",