}
}
+static void
+_e_comp_wl_client_position_update(E_Client *ec)
+{
+ int x = 0, y = 0;
+
+ /* update the position */
+ if (ec->changes.pos)
+ {
+ e_view_client_frame_xy_unadjust(e_client_view_get(ec),
+ ec->x, ec->y,
+ &x, &y);
+ }
+ else
+ {
+ x = ec->client.x;
+ y = ec->client.y;
+ }
+
+ e_client_util_move_resize_without_frame(ec, x, y, ec->w, ec->h);
+}
+
static void
_e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
{
}
else if (!e_client_video_hw_composition_check(ec))
{
- int x = 0, y = 0;
-
- /* update the position */
- if (ec->changes.pos)
- {
- e_view_client_frame_xy_unadjust(e_client_view_get(ec),
- ec->x, ec->y,
- &x, &y);
- }
- else
- {
- x = ec->client.x;
- y = ec->client.y;
- }
-
- e_client_util_move_resize_without_frame(ec, x, y, ec->w, ec->h);
+ _e_comp_wl_client_position_update(ec);
}
if (ec->new_client)