Demo: sync size of transform object with new commited buffer 97/46097/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Sat, 15 Aug 2015 06:42:04 +0000 (15:42 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Sat, 15 Aug 2015 06:50:40 +0000 (15:50 +0900)
Change-Id: I2cba64a6f9e9d609d7df519c82a196269ee33dd3
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_comp_wl.c

index 3d7618132801944a39558b53372c23297822a733..86f1925e13cd63411652d6de65b4fc9b8db4a824 100644 (file)
@@ -1197,10 +1197,6 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event
    if ((ec->shading) || (ec->shaded)) return;
    if (!ec->comp_data->shell.configure_send) return;
 
-   /* TODO: find point to resize transform object
-    * when this callback is not called */
-   _e_comp_wl_transform_resize(ec);
-
    /* TODO: calculate x, y with transfrom object */
    if ((e_client_util_resizing_get(ec)) && (!ec->transformed))
      {
@@ -1877,6 +1873,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
    if (state->buffer_viewport.changed)
      _e_comp_wl_map_apply(ec);
 
+   /* resize transform object */
+   if ((ec->transformed) && (e_client_util_resizing_get(ec)))
+     _e_comp_wl_transform_resize(ec);
+
    state->sx = 0;
    state->sy = 0;
    state->new_attach = EINA_FALSE;