ecore_wl2: fix to update "fullscreen", "maximized" properties of ecore_evas 33/206633/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 22 May 2019 04:17:39 +0000 (13:17 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 11 Jun 2019 07:23:37 +0000 (07:23 +0000)
Previously, elm_win_fullscreen_set and elm_win_maximized_set did not
work on wayland because the window properties of ecore_evas were not
updated.

The window properties of ecore_evas are updated in
_ecore_evas_wl_common_cb_window_configure.
To call _ecore_evas_wl_common_cb_window_configure,
ECORE_WL2_EVENT_WINDOW_CONFIGURE event is added.
To add ECORE_WL2_EVENT_WINDOW_CONFIGURE event,
_ecore_wl2_window_configure_send is called.

Now, by calling _ecore_wl2_window_configure_send after modifying window
properties of ecore_wl2, the window properties of ecore_evas are updated
in _ecore_evas_wl_common_cb_window_configure correctly.

Change-Id: I448b9f294aa7d1b4b9b218612beebf34b2cc56cf

src/lib/ecore_wl2/ecore_wl2_window.c

index 99882c6..a670e07 100644 (file)
@@ -1784,10 +1784,15 @@ ecore_wl2_window_maximized_set(Ecore_Wl2_Window *window, Eina_Bool maximized)
           xdg_toplevel_unset_maximized(window->xdg_toplevel);
         if (window->zxdg_toplevel)
           zxdg_toplevel_v6_unset_maximized(window->zxdg_toplevel);
-//TIZEN_ONLY(20150625)
-        _ecore_wl2_window_configure_send(window);
-//
      }
+   /* TIZEN_ONLY(20190522): The window properties of ecore_evas are updated in
+    * _ecore_evas_wl_common_cb_window_configure.
+    * To call _ecore_evas_wl_common_cb_window_configure,
+    * ECORE_WL2_EVENT_WINDOW_CONFIGURE event is added.
+    * To add ECORE_WL2_EVENT_WINDOW_CONFIGURE event,
+    * _ecore_wl2_window_configure_send is called. */
+   _ecore_wl2_window_configure_send(window);
+   /* END of TIZEN_ONLY(20190522) */
    ecore_wl2_display_flush(window->display);
 }
 
@@ -1833,10 +1838,15 @@ ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen)
           xdg_toplevel_unset_fullscreen(window->xdg_toplevel);
         if (window->zxdg_toplevel)
           zxdg_toplevel_v6_unset_fullscreen(window->zxdg_toplevel);
-//TIZEN_ONLY(20150625)
-        _ecore_wl2_window_configure_send(window);
-//
      }
+   /* TIZEN_ONLY(20190522): The window properties of ecore_evas are updated in
+    * _ecore_evas_wl_common_cb_window_configure.
+    * To call _ecore_evas_wl_common_cb_window_configure,
+    * ECORE_WL2_EVENT_WINDOW_CONFIGURE event is added.
+    * To add ECORE_WL2_EVENT_WINDOW_CONFIGURE event,
+    * _ecore_wl2_window_configure_send is called. */
+   _ecore_wl2_window_configure_send(window);
+   /* END of TIZEN_ONLY(20190522) */
    ecore_wl2_display_flush(window->display);
 }