summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index feeb4bf12c..e7acd146fc 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -536,6 +536,7 @@ _evas_shm_surface_data_get(Surface *s, int *w, int *h)
536void 536void
537_evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Eina_Bool hidden) 537_evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Eina_Bool hidden)
538{ 538{
539 Ecore_Wl2_Window *win;
539 struct wl_surface *wls; 540 struct wl_surface *wls;
540 Shm_Surface *surf; 541 Shm_Surface *surf;
541 Shm_Leaf *leaf; 542 Shm_Leaf *leaf;
@@ -546,11 +547,12 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Ei
546 leaf = surf->current; 547 leaf = surf->current;
547 if (!leaf) return; 548 if (!leaf) return;
548 549
549 wls = ecore_wl2_window_surface_get(s->info->info.wl2_win); 550 win = s->info->info.wl2_win;
551 wls = ecore_wl2_window_surface_get(win);
550 552
551 if (!hidden) 553 if (!hidden)
552 { 554 {
553 wl_surface_attach(wls, leaf->data->buffer, 0, 0); 555 ecore_wl2_window_buffer_attach(win, leaf->data->buffer, 0, 0, EINA_FALSE);
554 556
555 _evas_surface_damage(wls, surf->compositor_version, 557 _evas_surface_damage(wls, surf->compositor_version,
556 leaf->w, leaf->h, rects, count); 558 leaf->w, leaf->h, rects, count);