ecore-wl windows now emit 0x0 configure sizes more reliably when fs/maximized
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 4 Mar 2015 21:46:39 +0000 (16:46 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 4 Mar 2015 21:46:39 +0000 (16:46 -0500)
src/lib/ecore_wayland/ecore_wl_window.c

index 40cf0cb779656d25cf7a87542cda870bf5bc4a7f..3f6d40e3996d64e1f30c7e0c6bec7a3cb34b2d94 100644 (file)
@@ -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);