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 980c2ee..5409fd2 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 29a7998..4ef3a4d 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);