kimcinoo pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b27949dafb4a3f234e5633d65cdd5e50dd48a770

commit b27949dafb4a3f234e5633d65cdd5e50dd48a770
Author: Shinwoo Kim <cinoo....@samsung.com>
Date:   Tue Apr 10 20:38:47 2018 +0900

    ecore_evas_wayland: handle 0x0 content problem
    
    Someone could NOT use elementary and use ecore_evas only. In this case, 
content
    size which is defined by elementary is 0x0. If content size is 0x0, then 
frame
    size is equal to window size. But the frame size is defined by elementary as
    well. So if there is not a content, then the frame size should be 0.
---
 .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c 
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index b8f103b030..a6434502d0 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -517,8 +517,8 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
    nw = ev->w;
    nh = ev->h;
 
-   pfw = fw = wdata->win->set_config.geometry.w - wdata->content.w;
-   pfh = fh = wdata->win->set_config.geometry.h - wdata->content.h;
+   pfw = fw = wdata->content.w ? wdata->win->set_config.geometry.w - 
wdata->content.w : 0;
+   pfh = fh = wdata->content.h ? wdata->win->set_config.geometry.h - 
wdata->content.h : 0;
 
    if ((prev_max != ee->prop.maximized) ||
        (prev_full != ee->prop.fullscreen) ||
@@ -526,8 +526,8 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
      {
         state_change = EINA_TRUE;
         _ecore_evas_wl_common_state_update(ee);
-        fw = wdata->win->set_config.geometry.w - wdata->content.w;
-        fh = wdata->win->set_config.geometry.h - wdata->content.h;
+        fw = wdata->content.w ? wdata->win->set_config.geometry.w - 
wdata->content.w : 0;
+        fh = wdata->content.h ? wdata->win->set_config.geometry.h - 
wdata->content.h : 0;
      }
 
    if ((!nw) && (!nh))

-- 


Reply via email to