summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-01-05 13:33:19 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-01-05 13:40:31 -0600
commit7b0f93788056a754cab467b3cad00e3f108756a1 (patch)
treefef8e71a31d482202e2b6335e1b823459fa3f7c9 /src/modules/evas/engines/wayland_shm/evas_shm.c
parentbc000f3ad29d219c06cb0208ae3485ad138cc6d2 (diff)
wayland_shm: Add a force flag to surface reconfigure
We're going to need a way to force reconfigure unconditionally to make session recovery work again.
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index d38a19fd49..b1c55531d8 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -414,7 +414,7 @@ _evas_shm_surface_destroy(Surface *surface)
414} 414}
415 415
416void 416void
417_evas_shm_surface_reconfigure(Surface *s, int w, int h, uint32_t flags) 417_evas_shm_surface_reconfigure(Surface *s, int w, int h, uint32_t flags, Eina_Bool force)
418{ 418{
419 Shm_Surface *surface; 419 Shm_Surface *surface;
420 int i = 0, resize = 0; 420 int i = 0, resize = 0;
@@ -424,6 +424,8 @@ _evas_shm_surface_reconfigure(Surface *s, int w, int h, uint32_t flags)
424 surface = s->surf.shm; 424 surface = s->surf.shm;
425 resize = !!flags; 425 resize = !!flags;
426 426
427 if (force) for (; i < surface->num_buff; i++) surface->leaf[i].busy = EINA_FALSE;
428
427 for (; i < surface->num_buff; i++) 429 for (; i < surface->num_buff; i++)
428 { 430 {
429 /* don't resize any busy leafs */ 431 /* don't resize any busy leafs */