forked from enlightenment/efl
ecore_evas/wayland: Only set a default framespace if we have a frame.
If Ecore_Evas is requested to draw its own frame, then set the framespace too. Otherwise, keep it at 0,0 + 0x0, which means not framespace offset at all (and the window will have exactly the requested size).
This commit is contained in:
parent
e8228afff6
commit
6fc19b8dc2
|
@ -93,7 +93,7 @@ ecore_evas_wayland_egl_new_internal(const char *disp_name, unsigned int parent,
|
||||||
Ecore_Evas_Engine_Wl_Data *wdata;
|
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
int method = 0, count = 0;
|
int method = 0, count = 0;
|
||||||
int fx, fy, fw, fh;
|
int fx = 0, fy = 0, fw = 0, fh = 0;
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
|
@ -159,10 +159,13 @@ ecore_evas_wayland_egl_new_internal(const char *disp_name, unsigned int parent,
|
||||||
ee->alpha = EINA_FALSE;
|
ee->alpha = EINA_FALSE;
|
||||||
|
|
||||||
/* frame offset and size */
|
/* frame offset and size */
|
||||||
fx = 4;
|
if (ee->prop.draw_frame)
|
||||||
fy = 18;
|
{
|
||||||
fw = 8;
|
fx = 4;
|
||||||
fh = 22;
|
fy = 18;
|
||||||
|
fw = 8;
|
||||||
|
fh = 22;
|
||||||
|
}
|
||||||
|
|
||||||
ee->evas = evas_new();
|
ee->evas = evas_new();
|
||||||
evas_data_attach_set(ee->evas, ee);
|
evas_data_attach_set(ee->evas, ee);
|
||||||
|
|
|
@ -91,7 +91,7 @@ ecore_evas_wayland_shm_new_internal(const char *disp_name, unsigned int parent,
|
||||||
Ecore_Evas_Interface_Wayland *iface;
|
Ecore_Evas_Interface_Wayland *iface;
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
int method = 0, count = 0;
|
int method = 0, count = 0;
|
||||||
int fx, fy, fw, fh;
|
int fx = 0, fy = 0, fw = 0, fh = 0;
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
|
@ -161,10 +161,13 @@ ecore_evas_wayland_shm_new_internal(const char *disp_name, unsigned int parent,
|
||||||
ee->can_async_render = 1;
|
ee->can_async_render = 1;
|
||||||
|
|
||||||
/* frame offset and size */
|
/* frame offset and size */
|
||||||
fx = 4;
|
if (ee->prop.draw_frame)
|
||||||
fy = 18;
|
{
|
||||||
fw = 8;
|
fx = 4;
|
||||||
fh = 22;
|
fy = 18;
|
||||||
|
fw = 8;
|
||||||
|
fh = 22;
|
||||||
|
}
|
||||||
|
|
||||||
ee->evas = evas_new();
|
ee->evas = evas_new();
|
||||||
evas_data_attach_set(ee->evas, ee);
|
evas_data_attach_set(ee->evas, ee);
|
||||||
|
|
Loading…
Reference in New Issue