forked from enlightenment/enlightenment
adjust wayland client coords by window_geometry during first surface commit
fixes first window positioning
This commit is contained in:
parent
04e3c383c4
commit
d08abd43fd
|
@ -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;
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue