summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-09-14 12:30:12 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-10-12 12:24:03 -0500
commit656d892581c64c8c2adf854a316fd542738e7070 (patch)
tree1596f9838ad4a89a47c4c9fee79efc92a9d89944 /src/modules/evas/engines/wayland_shm/evas_shm.c
parentc72b0b44ad69c6c5ab6396e12831bc99d373b3b9 (diff)
wayland_shm: Remove hidden from surface posting calls
Now that we tick based on frame callbacks it should be impossible to post an update while hidden.
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 5246b49e69..961cf46620 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -542,7 +542,7 @@ _evas_shm_surface_data_get(Surface *s, int *w, int *h)
542} 542}
543 543
544void 544void
545_evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Eina_Bool hidden) 545_evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
546{ 546{
547 Ecore_Wl2_Window *win; 547 Ecore_Wl2_Window *win;
548 struct wl_surface *wls; 548 struct wl_surface *wls;
@@ -558,13 +558,10 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Ei
558 win = s->info->info.wl2_win; 558 win = s->info->info.wl2_win;
559 wls = ecore_wl2_window_surface_get(win); 559 wls = ecore_wl2_window_surface_get(win);
560 560
561 if (!hidden) 561 ecore_wl2_window_buffer_attach(win, leaf->data->buffer, 0, 0, EINA_FALSE);
562 {
563 ecore_wl2_window_buffer_attach(win, leaf->data->buffer, 0, 0, EINA_FALSE);
564 562
565 _evas_surface_damage(wls, surf->compositor_version, 563 _evas_surface_damage(wls, surf->compositor_version,
566 leaf->w, leaf->h, rects, count); 564 leaf->w, leaf->h, rects, count);
567 }
568 565
569 ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE); 566 ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE);
570 567