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.
This commit is contained in:
Shinwoo Kim 2018-04-10 20:38:47 +09:00
parent 5bbe49ab99
commit b27949dafb
1 changed files with 4 additions and 4 deletions

View File

@ -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))