ecore_wl2: Don't overwrite saved geometry if switching fs to max

If we switch from fullscreen to maximized we need to keep the pre-fs
geometry around in case we ever unmaximize AND unfullscreen.
This commit is contained in:
Derek Foreman 2017-10-11 15:39:26 -05:00
parent 10de856ee9
commit 9918a2c920
1 changed files with 2 additions and 1 deletions

View File

@ -865,7 +865,8 @@ ecore_wl2_window_maximized_set(Ecore_Wl2_Window *window, Eina_Bool maximized)
if (maximized)
{
window->saved = window->set_config.geometry;
if (!window->set_config.fullscreen)
window->saved = window->set_config.geometry;
if (window->zxdg_toplevel)
zxdg_toplevel_v6_set_maximized(window->zxdg_toplevel);