e_comp_wl: add code to check new_attach flag before calling e_client_unignore 41/175041/1 accepted/tizen/unified/20180410.063536 submit/tizen/20180406.064522
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 6 Apr 2018 06:27:15 +0000 (15:27 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 6 Apr 2018 06:27:18 +0000 (15:27 +0900)
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

index 0ca6fa4..ec8330c 100644 (file)
@@ -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)