summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-21 16:17:55 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-21 16:17:54 -0400
commit93bac8ce4a88064c430d55b34fa80bd914f2c2f9 (patch)
tree60a64b28537a354e0809568352f01254a7b6a7d3 /src/modules/evas/engines/wayland_shm/evas_shm.c
parent5070ecc99aeed399775a834e60b6485d61a35624 (diff)
wayland: stop creating 1x1 surfaces on init
fix T5226 #IGot99TicketsBut1x1AintOne
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 529b6098f5..28feb3fdbd 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -431,6 +431,7 @@ _evas_shm_surface_reconfigure(Surface *s, int w, int h, uint32_t flags, Eina_Boo
431 surface->w = w; 431 surface->w = w;
432 surface->h = h; 432 surface->h = h;
433 433
434 if ((!w) || (!h)) return;
434 for (i = 0; i < surface->num_buff; i++) 435 for (i = 0; i < surface->num_buff; i++)
435 { 436 {
436 if (surface->leaf[i].busy) continue; 437 if (surface->leaf[i].busy) continue;
@@ -600,13 +601,16 @@ _evas_shm_surface_create(Surface *s, int w, int h, int num_buff)
600 surf->alpha = s->info->info.destination_alpha; 601 surf->alpha = s->info->info.destination_alpha;
601 surf->compositor_version = s->info->info.compositor_version; 602 surf->compositor_version = s->info->info.compositor_version;
602 603
603 /* create surface buffers */ 604 if (w && h)
604 for (; i < surf->num_buff; i++)
605 { 605 {
606 if (!_shm_leaf_create(surf, &(surf->leaf[i]), w, h)) 606 /* create surface buffers */
607 for (; i < surf->num_buff; i++)
607 { 608 {
608 ERR("Could not create surface leaf"); 609 if (!_shm_leaf_create(surf, &(surf->leaf[i]), w, h))
609 goto err; 610 {
611 ERR("Could not create surface leaf");
612 goto err;
613 }
610 } 614 }
611 } 615 }
612 616