summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index ebb10f258d..4093bec8a9 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -455,6 +455,12 @@ _ecore_wl2_window_shell_surface_init(Ecore_Wl2_Window *window)
455 455
456 window->pending.configure = EINA_TRUE; 456 window->pending.configure = EINA_TRUE;
457 457
458 if (window->maximized)
459 zxdg_toplevel_v6_set_maximized(window->zxdg_toplevel);
460
461 if (window->fullscreen)
462 zxdg_toplevel_v6_set_fullscreen(window->zxdg_toplevel, NULL);
463
458 wl_surface_commit(window->surface); 464 wl_surface_commit(window->surface);
459 } 465 }
460 else if ((window->display->wl.xdg_shell) && (!window->xdg_surface)) 466 else if ((window->display->wl.xdg_shell) && (!window->xdg_surface))
@@ -475,6 +481,11 @@ _ecore_wl2_window_shell_surface_init(Ecore_Wl2_Window *window)
475 481
476 window->configure_ack = xdg_surface_ack_configure; 482 window->configure_ack = xdg_surface_ack_configure;
477 window->pending.configure = EINA_FALSE; 483 window->pending.configure = EINA_FALSE;
484 if (window->maximized)
485 xdg_surface_set_maximized(window->xdg_surface);
486 if (window->fullscreen)
487 xdg_surface_set_fullscreen(window->xdg_surface, NULL);
488
478 _ecore_wl2_window_type_set(window); 489 _ecore_wl2_window_type_set(window);
479 } 490 }
480 491
@@ -960,6 +971,9 @@ ecore_wl2_window_maximized_set(Ecore_Wl2_Window *window, Eina_Bool maximized)
960 maximized = !!maximized; 971 maximized = !!maximized;
961 if (prev == maximized) return; 972 if (prev == maximized) return;
962 973
974 if (!ecore_wl2_window_shell_surface_exists(window))
975 window->maximized = maximized;
976
963 if (maximized) 977 if (maximized)
964 { 978 {
965 window->saved = window->geometry; 979 window->saved = window->geometry;
@@ -997,6 +1011,9 @@ ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen)
997 fullscreen = !!fullscreen; 1011 fullscreen = !!fullscreen;
998 if (prev == fullscreen) return; 1012 if (prev == fullscreen) return;
999 1013
1014 if (!ecore_wl2_window_shell_surface_exists(window))
1015 window->fullscreen = fullscreen;
1016
1000 if (fullscreen) 1017 if (fullscreen)
1001 { 1018 {
1002 window->saved = window->geometry; 1019 window->saved = window->geometry;