e_comp_wl: do not modify the size of client when its size is locked by compositor.
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 18 Jan 2016 04:54:38 +0000 (13:54 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 21 Jan 2016 07:20:11 +0000 (16:20 +0900)
Change-Id: I95c5012744b3fc6d1f3110ca0759614fcd8d6416

src/bin/e_comp_wl.c

index 302070a45eababa2494e48022ee6ee4f9a96cfe9..f229b917a1d66008cdf25c07c3cbd9bdc11d7c74 100644 (file)
@@ -1831,24 +1831,17 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
 
         if (!ec->lock_client_size)
           {
-             ec->w = ec->client.w = state->bw;
-             ec->h = ec->client.h = state->bh;
-          }
-
-        if (first && e_client_has_xwindow(ec))
-          /* use client geometry to avoid race condition from x11 configure request */
-          x = ec->x, y = ec->y;
-        else
-          {
-             ec->client.w = state->bw;
-             ec->client.h = state->bh;
-             e_comp_object_frame_wh_adjust(ec->frame, ec->client.w, ec->client.h, &ec->w, &ec->h);
+             if (first && e_client_has_xwindow(ec))
+               /* use client geometry to avoid race condition from x11 configure request */
+               x = ec->x, y = ec->y;
+             else
+               {
+                  ec->client.w = state->bw;
+                  ec->client.h = state->bh;
+                  e_comp_object_frame_wh_adjust(ec->frame, ec->client.w, ec->client.h, &ec->w, &ec->h);
+               }
           }
-        w = ec->client.w;
-        h = ec->client.h;
      }
-   else
-     w = state->bw, h = state->bh;
    if (!e_pixmap_usable_get(ec->pixmap))
      {
         if (ec->comp_data->mapped)