From 7d3319e6ee8197eb0a7b4cfb18ba5b12d4f3c3ce Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 8 Feb 2016 14:03:31 -0500 Subject: [PATCH] do not perform special case position adjustment for re_manage clients this case is solely for handling clients which are created with nonzero position, eg. an x11 window trying to display itself centered upon initial creation. re_manage indicates a window which is re-managed after a restart of enlightenment, so these windows clearly do not fall into that case fixes an issue where windows would move up+left by the size of their frame during restart ref 95e133282ef0ae8942ae513449b31d9f7149c519 --- src/bin/e_comp_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 06b694318..561ecbef7 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -3284,7 +3284,8 @@ reshadow: do { _e_comp_smart_cb_frame_recalc(cw, cw->smart_obj, NULL); - if ((cw->x == -1) && (cw->y == -1) && cw->ec->new_client && (!cw->ec->placed)) + if ((cw->x == -1) && (cw->y == -1) && cw->ec->new_client && + (!cw->ec->placed) && (!cw->ec->re_manage)) { cw->ec->x = MAX(cw->ec->zone->x, cw->ec->client.x - cw->client_inset.l); cw->ec->y = MAX(cw->ec->zone->y, cw->ec->client.y - cw->client_inset.t);