Demo: fixed unwanted move while transformed client is resizing 69/45769/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Tue, 11 Aug 2015 05:06:07 +0000 (14:06 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Tue, 11 Aug 2015 06:13:05 +0000 (15:13 +0900)
Change-Id: I7a1334d5c1be0055e0c721e03dba0dfd0e8631a0
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_comp_wl.c

index fd356c1d18ade9dd78d8b3857ee5a694dc59b6e7..b518a91db6d4e650e087696b138f8efc5e9d22ef 100644 (file)
@@ -322,7 +322,6 @@ _e_comp_wl_transform_resize(E_Client *ec)
    evas_map_point_precise_coord_set(rotmap, 1, px1 + dx, py1 + dy, 0);
    evas_map_point_precise_coord_set(rotmap, 2, px2 + dx, py2 + dy, 0);
    evas_map_point_precise_coord_set(rotmap, 3, px3 + dx, py3 + dy, 0);
-   evas_map_util_object_move_sync_set(rotmap, EINA_TRUE);
    evas_object_map_set(ec->frame, rotmap);
    evas_object_map_enable_set(ec->frame, rotmap? EINA_TRUE : EINA_FALSE);
    evas_map_free(rotmap);
@@ -3366,6 +3365,8 @@ _e_comp_wl_client_cb_resize_begin(void *data EINA_UNUSED, E_Client *ec)
 static void
 _e_comp_wl_client_cb_resize_end(void *data EINA_UNUSED, E_Client *ec)
 {
+   Evas_Map *map;
+
    if (e_object_is_del(E_OBJECT(ec))) return;
    if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
 
@@ -3386,6 +3387,11 @@ _e_comp_wl_client_cb_resize_end(void *data EINA_UNUSED, E_Client *ec)
      {
         e_moveresize_replace(EINA_TRUE);
         _e_comp_wl_transform_geometry_set(ec);
+
+        if ((map = (Evas_Map*)evas_object_map_get(ec->frame)))
+          {
+             evas_map_util_object_move_sync_set(map, EINA_TRUE);
+          }
      }
 }