summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-10-11 15:39:26 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-10-12 12:24:03 -0500
commit9918a2c920dfe2e45ae6cfc776797a1806be49b9 (patch)
tree36ea24c09cba3cde7558be1930ada35533791bc8 /src/lib/ecore_wl2
parent10de856ee91f0af2148b00176ff8df39f1e0b3a2 (diff)
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.
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 58faee4445..4750267b30 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -865,7 +865,8 @@ ecore_wl2_window_maximized_set(Ecore_Wl2_Window *window, Eina_Bool maximized)
865 865
866 if (maximized) 866 if (maximized)
867 { 867 {
868 window->saved = window->set_config.geometry; 868 if (!window->set_config.fullscreen)
869 window->saved = window->set_config.geometry;
869 870
870 if (window->zxdg_toplevel) 871 if (window->zxdg_toplevel)
871 zxdg_toplevel_v6_set_maximized(window->zxdg_toplevel); 872 zxdg_toplevel_v6_set_maximized(window->zxdg_toplevel);