diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index bc0073ed1..5f2892fd8 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1041,7 +1041,11 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) if (ec->changes.pos) e_comp_object_frame_xy_unadjust(ec->frame, ec->x, ec->y, &x, &y); else - x = ec->client.x, y = ec->client.y; + { + x = ec->client.x, y = ec->client.y; + if (ec->new_client) + x -= ec->comp_data->shell.window.x, y -= ec->comp_data->shell.window.y; + } if (ec->new_client) placed = ec->placed;