summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-11-17 13:51:19 -0500
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:05:49 -0500
commit116a0abf9326b274671d233be6626a5d63e153ab (patch)
tree0cce49832c9615b9988786becc858856b2bd974e
parentd4dcd026f41239c93f0c3ca6ca634467bed56a4d (diff)
ecore-evas-wl: Fix issue of improper window geometry
This fixes an issue where maximizing a window would set improper xdg surface window geometry. We receive window configure sizes based on xdg surface window geometry, so we need to subtract framespace there or else window size grows when maximizing/unmaximizing multiple times. This also adjusts the call to xdg_surface_set_window_geometry to account for framespace (Fixes T2842). @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index cc61a48..46a8d25 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -191,6 +191,18 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
191 if (nw < 1) nw = 1; 191 if (nw < 1) nw = 1;
192 if (nh < 1) nh = 1; 192 if (nh < 1) nh = 1;
193 193
194 evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
195 if (ECORE_EVAS_PORTRAIT(ee))
196 {
197 nw -= fw;
198 nh -= fh;
199 }
200 else
201 {
202 nw -= fh;
203 nh -= fw;
204 }
205
194 if (prev_full != ee->prop.fullscreen) 206 if (prev_full != ee->prop.fullscreen)
195 _ecore_evas_wl_common_border_update(ee); 207 _ecore_evas_wl_common_border_update(ee);
196 208