e_comp_wl: do not set tge geometry of frame object when client is borderless.
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 18 Jan 2016 04:49:48 +0000 (13:49 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 21 Jan 2016 07:20:11 +0000 (16:20 +0900)
Change-Id: I16e7bce408a98eb9cba19cde1e437112e5bf0800

src/bin/e_comp_wl.c

index eaa1f6c..302070a 100644 (file)
@@ -1720,10 +1720,14 @@ _e_comp_wl_surface_state_size_update(E_Client *ec, E_Comp_Wl_Surface_State *stat
    if (!e_pixmap_size_get(ec->pixmap, &state->bw, &state->bh)) return;
    if (e_client_has_xwindow(ec) || e_comp_object_frame_exists(ec->frame)) return;
    window = &ec->comp_data->shell.window;
-   if (window->x || window->y || window->w || window->h)
-     e_comp_object_frame_geometry_set(ec->frame, -window->x, (window->x + window->w) - state->bw,
-       -window->y,
-       (window->y + window->h) - state->bh);
+   if ((!ec->borderless) && /* FIXME temporarily added this check code
+                             * to prevent updating E_Client's size by frame */
+       (window->x || window->y || window->w || window->h))
+     {
+        e_comp_object_frame_geometry_set(ec->frame, -window->x, (window->x + window->w) - state->bw,
+                                         -window->y,
+                                         (window->y + window->h) - state->bh);
+     }
    else
      e_comp_object_frame_geometry_set(ec->frame, 0, 0, 0, 0);
 }