efl_ui_win: use move_resize instead of resize 23/285923/2
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 21 Dec 2022 10:48:52 +0000 (19:48 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Thu, 22 Dec 2022 10:14:21 +0000 (10:14 +0000)
Use move_resize API to distinguish server's resize request and client's resize request

Change-Id: Idda1dade0c3708d162e1079f16b47926d592fe46

src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_win_common.h

index 72c0a3b..c89edea 100644 (file)
@@ -3905,10 +3905,12 @@ _efl_ui_win_efl_gfx_entity_size_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Size2D sz
    _elm_win_frame_obj_update(sd, 1);
    if (!sd->response)
      {
+        int x = 0, y = 0;
         sd->req_wh = EINA_TRUE;
         sd->req_w = sz.w;
         sd->req_h = sz.h;
-        TRAP(sd, resize, sz.w, sz.h);
+        evas_object_geometry_get(obj, &x, &y, NULL, NULL);
+        TRAP(sd, move_resize, x, y, sz.w, sz.h);
      }
 
    efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), sz);
index a186bc6..1f420c4 100644 (file)
@@ -59,6 +59,7 @@ struct _Elm_Win_Trap
    Eina_Bool (*input_rect_set)(void *data, Evas_Object *o, Eina_Rectangle *input_rect);
    Eina_Bool (*input_rect_add)(void *data, Evas_Object *o, Eina_Rectangle *input_rect);
    Eina_Bool (*input_rect_subtract)(void *data, Evas_Object *o, Eina_Rectangle *input_rect);
+   Eina_Bool (*move_resize)(void *data, Evas_Object *o, int x, int y, int w, int h);
 //
 };