ecore_wl2_surface: fix zero size buffer creation
authorJiyoun Park <jy0703.park@samsung.com>
Fri, 5 Jan 2018 03:24:45 +0000 (12:24 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Fri, 5 Jan 2018 03:24:45 +0000 (12:24 +0900)
   opensource changed the shm surface code not to create shm buffer at init time.
   Becuase of this client can request to the server using the zerosize buffer,
   tizen buffer driver cannot allow zerosize.

src/lib/ecore_wl2/ecore_wl2_surface.c

index cd810d2..03e5111 100644 (file)
@@ -233,8 +233,14 @@ ecore_wl2_surface_create(Ecore_Wl2_Window *win, Eina_Bool alpha)
      types |= ECORE_WL2_BUFFER_DMABUF;
 
    out->alpha = alpha;
+//TIZEN_ONLY(20180105): tizen don't allow the zero size buffer creation
+   out->w = 1;
+   out->h = 1;
+   /*
    out->w = 0;
    out->h = 0;
+   */
+//
 
    /* create surface buffers */
    if (!ecore_wl2_buffer_init(ewd, types)) goto err;