comp_wl: Don't sync client size with buffer if client-side resize was locked 81/37681/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Thu, 2 Apr 2015 11:44:40 +0000 (20:44 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Thu, 2 Apr 2015 11:45:18 +0000 (20:45 +0900)
Change-Id: Idd4cbe75cec8bf55b132ae38f5dc88aaf2660d68
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_comp_wl.c

index a64f59ba0132e00e86cd2c799b15d65309c952ae..d5642b5d012cfa06fa4afa76ab07c9800fb53ac8 100644 (file)
@@ -1029,8 +1029,11 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
 
         if (ec->new_client) placed = ec->placed;
 
-        ec->w = ec->client.w = state->bw;
-        ec->h = ec->client.h = state->bh;
+        if (!ec->lock_client_size)
+          {
+             ec->w = ec->client.w = state->bw;
+             ec->h = ec->client.h = state->bh;
+          }
      }
    if (!e_pixmap_usable_get(ec->pixmap))
      {
@@ -1063,9 +1066,9 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
      {
         if ((ec->comp_data->shell.surface) && (ec->comp_data->shell.configure))
           ec->comp_data->shell.configure(ec->comp_data->shell.surface,
-                                         x, y, state->bw, state->bh);
+                                         x, y, ec->w, ec->h);
         else
-          e_client_util_move_resize_without_frame(ec, x, y, state->bw, state->bh);
+          e_client_util_move_resize_without_frame(ec, x, y, ec->w, ec->h);
 
         if (ec->new_client)
           ec->placed = placed;