summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-10 10:40:54 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-10 10:40:54 +0100
commit0bcb83b2b62e1bdaedcb0c3d9cd10a622e604a20 (patch)
treece77312d73038b14231a6075fac405e5bebc9e96
parentc533d03e5951c957ae5874f4ee537006e070e0fa (diff)
downloadenlightenment-0bcb83b2b62e1bdaedcb0c3d9cd10a622e604a20.tar.gz
more accurately init window position for re-managed windows
-rw-r--r--src/bin/e_border.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index abfc2308bb..0050dcba4e 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -8298,9 +8298,10 @@ _e_border_eval(E_Border *bd)
if (bd->re_manage)
{
- bd->x -= bd->client_inset.l;
- bd->y -= bd->client_inset.t;
- bd->changes.pos = 1;
+ int x = bd->x, y = bd->y;
+ if (bd->x) bd->x -= bd->client_inset.l;
+ if (bd->y) bd->y -= bd->client_inset.t;
+ if ((x != bd->x) || (y != bd->y)) bd->changes.pos = 1;
bd->placed = 1;
}
else if ((!bd->placed) && (bd->client.icccm.request_pos))