Fix ecore_evas_wayland maximized support to function properly
authorChris Michael <cp.michael@samsung.com>
Thu, 31 Oct 2013 16:58:21 +0000 (16:58 +0000)
committerChris Michael <cp.michael@samsung.com>
Thu, 31 Oct 2013 16:58:21 +0000 (16:58 +0000)
Previously, a "maximize" of an efl client would not actually resize to
the provided size as it would account for framespace width & height.
This fixes that so now "maximize" is Actually maximized.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index a40717e16be48f12897fa579cbb6b078b0b27464..7d3d444f0a2e4bdf76dec4dccea55ab085ca5365 100644 (file)
@@ -217,15 +217,14 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
 
    if ((ee->x != ev->x) || (ee->y != ev->y))
      {
-        ee->req.x = ee->x;
-        ee->req.y = ee->y;
+        ee->req.x = ev->x;
+        ee->req.y = ev->y;
         if (ee->func.fn_move) ee->func.fn_move(ee);
      }
 
    nw = ev->w;
    nh = ev->h;
-
-   if ((ee->prop.maximized) || (!ee->prop.fullscreen))
+   if ((!ee->prop.maximized) && (!ee->prop.fullscreen))
      {
         int fw = 0, fh = 0;