ecore_wl2: add resize request set for ignoring configure event 06/286106/1
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 28 Dec 2022 04:22:14 +0000 (13:22 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Wed, 28 Dec 2022 04:22:14 +0000 (13:22 +0900)
Give more priority to app's resize request than server's request.

@tizen_only

Change-Id: Ib1dbe26ada8a654364b356e7f3bf3d49f9774fa5

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_window.c
src/lib/elementary/efl_ui_win.c

index 1058c21..5a54a35 100644 (file)
@@ -2548,6 +2548,9 @@ EAPI unsigned int ecore_wl2_window_resource_id_get(Ecore_Wl2_Window *window);
 EAPI void ecore_wl2_cursor_config_name_set(const char *name);
 //
 
+//TIZEN_ONLY(20221228): add resize request set for ignoring configure event
+EAPI void ecore_wl2_window_resize_request_set(Ecore_Wl2_Window *window);
+//
 # undef EAPI
 # define EAPI
 
index 4b7b544..ba79230 100644 (file)
@@ -4546,3 +4546,12 @@ ecore_wl2_window_resource_id_get(Ecore_Wl2_Window *window)
    return window->resource_id;
 }
 //
+
+//TIZEN_ONLY(20221228): add resize request set for ignoring configure event
+EAPI void
+ecore_wl2_window_resize_request_set(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN(window);
+   window->pending.user_resize = EINA_TRUE;
+}
+//
index 72c0a3b..2030670 100644 (file)
@@ -3908,6 +3908,10 @@ _efl_ui_win_efl_gfx_entity_size_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Size2D sz
         sd->req_wh = EINA_TRUE;
         sd->req_w = sz.w;
         sd->req_h = sz.h;
+        //TIZEN_ONLY(20221228): add resize request set for ignoring configure event
+        ERR("Call resize request set w: %d h: %d", sz.w, sz.h);
+        ecore_wl2_window_resize_request_set(sd->wl.win);
+        //
         TRAP(sd, resize, sz.w, sz.h);
      }