forked from enlightenment/efl
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:
parent
5bbe49ab99
commit
b27949dafb
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue