ecore_evas/wayland: Only set a default framespace if we have a frame.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 2 May 2013 10:00:49 +0000 (07:00 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 2 May 2013 10:32:14 +0000 (07:32 -0300)
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).

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index 658c4c4..22b48ad 100644 (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);
index 4556872..760ad05 100644 (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);