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

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

View File

@ -901,7 +901,8 @@ ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen)
if (fullscreen)
{
window->saved = window->set_config.geometry;
if (!window->set_config.maximized)
window->saved = window->set_config.geometry;
if (window->zxdg_toplevel)
zxdg_toplevel_v6_set_fullscreen(window->zxdg_toplevel, NULL);