ecore_wl2: fix mismatched synchronized mode. 18/240418/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 6 Aug 2020 16:04:06 +0000 (01:04 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 6 Aug 2020 16:07:03 +0000 (01:07 +0900)
A sub-surface is initially in the synchronized mode.

Change-Id: Ic420cf7dd9edfc1761910afc87dac9c6c64d360d

src/lib/ecore_wl2/ecore_wl2_subsurf.c
src/lib/ecore_wl2/ecore_wl2_window.c

index 980c2eed477f246da22e41ca50696a64c8fb6199..5409fd2b261bf0a63f52e49e4bf90b84664832bf 100644 (file)
@@ -65,6 +65,9 @@ ecore_wl2_subsurface_new(Ecore_Wl2_Window *window)
         goto sub_surf_err;
      }
 
+   /* A sub-surface is initially in the synchronized mode. */
+   subsurf->sync = EINA_TRUE;
+
    window->subsurfs =
      eina_inlist_append(window->subsurfs, EINA_INLIST_GET(subsurf));
 
index 29a7998a13c006c7f0ea9a66a7a9a1d1ade0779d..4ef3a4dea8868f0e18150f51835a3b2e6e9d26e3 100644 (file)
@@ -3635,6 +3635,9 @@ ecore_wl2_window_video_surface_create(Ecore_Wl2_Window *win)
         goto buf_fill_err;
      }
 
+   /* A sub-surface is initially in the synchronized mode. */
+   win->video.sync = EINA_TRUE;
+
    /* need to attach surface */
    wl_surface_attach(win->video.surface, win->video.wl_buffer, 0, 0);
    wl_surface_commit(win->video.surface);