ee_wayland: Don't use wrong window size
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 16 Oct 2017 21:17:29 +0000 (16:17 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Mon, 16 Oct 2017 21:17:29 +0000 (16:17 -0500)
Borderless windows, such as internal windows, need to be the exact size
they're passed by a configure event.

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 8e21903..1051a1b 100644 (file)
@@ -535,8 +535,11 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
         return ECORE_CALLBACK_RENEW;
      }
 
-   nw -= fw;
-   nh -= fh;
+   if (!ee->prop.borderless)
+     {
+        nw -= fw;
+        nh -= fh;
+     }
 
    if (ee->prop.fullscreen || (ee->req.w != nw) || (ee->req.h != nh))
      {