From daaca897904bb1450fe3d59c6d12bbe0abd18a45 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 4 Mar 2015 16:46:39 -0500 Subject: [PATCH] ecore-wl windows now emit 0x0 configure sizes more reliably when fs/maximized --- src/lib/ecore_wayland/ecore_wl_window.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 40cf0cb..3f6d40e 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -1039,11 +1039,10 @@ _ecore_xdg_handle_surface_configure(void *data, struct xdg_surface *xdg_surface } if ((width > 0) && (height > 0)) _ecore_wl_window_configure_send(win, width, height, 0); + else if (win->fullscreen || win->maximized) + _ecore_wl_window_configure_send(win, 0, 0, 0); else - { - if ((win->saved.w != 1) || (win->saved.h != 1)) - _ecore_wl_window_configure_send(win, win->saved.w, win->saved.h, 0); - } + _ecore_wl_window_configure_send(win, win->saved.w, win->saved.h, 0); if (win->xdg_surface) xdg_surface_ack_configure(win->xdg_surface, serial); -- 2.7.4