summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-10-11 15:38:39 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-10-12 12:24:03 -0500
commit10de856ee91f0af2148b00176ff8df39f1e0b3a2 (patch)
treeca6878492dd27c380f3d12a79c644ac5081d4721 /src/lib/ecore_wl2
parent1d1d2d76aa8883a5a3e418c1b301427bc908964d (diff)
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.
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 16ad04a7e5..58faee4445 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -901,7 +901,8 @@ ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen)
901 901
902 if (fullscreen) 902 if (fullscreen)
903 { 903 {
904 window->saved = window->set_config.geometry; 904 if (!window->set_config.maximized)
905 window->saved = window->set_config.geometry;
905 906
906 if (window->zxdg_toplevel) 907 if (window->zxdg_toplevel)
907 zxdg_toplevel_v6_set_fullscreen(window->zxdg_toplevel, NULL); 908 zxdg_toplevel_v6_set_fullscreen(window->zxdg_toplevel, NULL);