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:
Rafael Antognolli 2013-05-02 07:00:49 -03:00
parent e8228afff6
commit 6fc19b8dc2
2 changed files with 16 additions and 10 deletions

View File

@ -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 *ee;
int method = 0, count = 0;
int fx, fy, fw, fh;
int fx = 0, fy = 0, fw = 0, fh = 0;
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;
/* frame offset and size */
fx = 4;
fy = 18;
fw = 8;
fh = 22;
if (ee->prop.draw_frame)
{
fx = 4;
fy = 18;
fw = 8;
fh = 22;
}
ee->evas = evas_new();
evas_data_attach_set(ee->evas, ee);

View File

@ -91,7 +91,7 @@ ecore_evas_wayland_shm_new_internal(const char *disp_name, unsigned int parent,
Ecore_Evas_Interface_Wayland *iface;
Ecore_Evas *ee;
int method = 0, count = 0;
int fx, fy, fw, fh;
int fx = 0, fy = 0, fw = 0, fh = 0;
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;
/* frame offset and size */
fx = 4;
fy = 18;
fw = 8;
fh = 22;
if (ee->prop.draw_frame)
{
fx = 4;
fy = 18;
fw = 8;
fh = 22;
}
ee->evas = evas_new();
evas_data_attach_set(ee->evas, ee);