e_comp_wl: fix missing e_explicit_sync_commit in case of remote surface 62/277762/1 accepted/tizen/unified/20220714.135400 submit/tizen/20220713.042217
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 12 Jul 2022 07:38:18 +0000 (16:38 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Wed, 13 Jul 2022 02:53:54 +0000 (11:53 +0900)
_e_comp_wl_surface_state_commit is not called in case of remote surface
calling e_explicit_sync_commit is moved to _e_comp_wl_surface_cb_commit.

Change-Id: I933b252d306eea75d83c482ceca466cc81885c62

src/bin/e_comp_wl.c

index b45ec40941004efb59479a402f69b55c15d901ef..cff692a209afa643bddfcb1cd32a08b51103e0b9 100644 (file)
@@ -2896,9 +2896,6 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
 
    state->buffer_viewport.changed = 0;
 
-   if (ec->explicit_sync_surface)
-     e_explicit_sync_surface_commit(ec->explicit_sync_surface);
-
    if (buffer &&
        ec->exp_iconify.buffer_flush &&
        e_policy_visibility_client_is_iconic(ec))
@@ -3132,6 +3129,9 @@ _e_comp_wl_surface_cb_commit(struct wl_client *client EINA_UNUSED, struct wl_res
           }
      }
 
+   if (ec->explicit_sync_surface)
+     e_explicit_sync_surface_commit(ec->explicit_sync_surface);
+
    if (e_comp_wl_remote_surface_commit(ec)) return;
    if (e_comp_wl_subsurface_commit(ec)) return;