summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2018-04-10 20:38:47 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2018-04-10 20:38:47 +0900
commitb27949dafb4a3f234e5633d65cdd5e50dd48a770 (patch)
treecc5128225ebae1de937b5175f393eb70b03125a3
parent5bbe49ab99aa30c694b4fae8a38399d41882b094 (diff)
downloadefl-b27949dafb4a3f234e5633d65cdd5e50dd48a770.tar.gz
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.
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c8
1 files 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))