summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-08-17 15:12:57 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-08-18 14:27:32 -0500
commit3290e6da1026f87e71508d57ffca697c1e8df02f (patch)
treee7597d744121c9796196b7e4a777c360b67368c3 /src/modules/evas/engines/wayland_shm/evas_shm.c
parent5f0fa084673d1e531ff17d1af96e62203ed65c2c (diff)
wayland_shm: Use ecore_wl2_window_buffer_attach
No longer calling wl_surface_attach directly.
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);