From 695a3a8d1759921129e436dbc594e36031fc6d1b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 15 Mar 2016 16:12:05 -0400 Subject: [PATCH] adjust wayland client coords by window_geometry during first surface commit fixes first window positioning --- src/bin/e_comp_wl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index aaa36f70e..387206e36 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1042,7 +1042,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;