From cd659f8fb756c1642c04081dce2f245a19c63472 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Fri, 6 Apr 2018 15:27:15 +0900 Subject: [PATCH] e_comp_wl: add code to check new_attach flag before calling e_client_unignore After efl upgrade, e gets a surface commit message before receiving a surface attach message. For this, calling e_client_unignore time is faster than previous efl version. This patch fixed this problem. Change-Id: Ia9a315f69155648b3dc0227238a2b71a040de4fc --- src/bin/e_comp_wl.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 0ca6fa453d..ec8330c301 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2429,13 +2429,16 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) Eina_List *l, *ll; E_Comp_Wl_Buffer_Viewport *vp = &ec->comp_data->scaler.buffer_viewport; - if ((ec->ignored) && - (ec->comp_data->shell.surface || ec->internal)) + if (ec->ignored) { - EC_CHANGED(ec); - ec->new_client = 1; - e_comp->new_clients++; - e_client_unignore(ec); + if ((ec->internal) || + (ec->comp_data->shell.surface && state->new_attach)) + { + EC_CHANGED(ec); + ec->new_client = 1; + e_comp->new_clients++; + e_client_unignore(ec); + } } if (vp->buffer.transform != state->buffer_viewport.buffer.transform) -- 2.34.1