From f67ca62892e75654015fbaf83fb45dc26873088a Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Fri, 18 Jun 2010 14:19:33 +0000 Subject: [PATCH] should now popup in the right zone SVN revision: 49742 --- src/modules/everything/evry.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/everything/evry.c b/src/modules/everything/evry.c index b2529b24e..ff5cd9069 100644 --- a/src/modules/everything/evry.c +++ b/src/modules/everything/evry.c @@ -812,8 +812,8 @@ _evry_window_new(E_Zone *zone, E_Zone_Edge edge) mw += offset_s*2; mh += offset_s*2; - x = (zone->w * evry_conf->rel_x) - (mw / 2); - y = (zone->h * evry_conf->rel_y) - (mh / 2); + x = (zone->x + (zone->w * evry_conf->rel_x)) - (mw / 2); + y = (zone->y + (zone->h * evry_conf->rel_y)) - (mh / 2); } else { @@ -846,6 +846,9 @@ _evry_window_new(E_Zone *zone, E_Zone_Edge edge) break; } + x += zone->x; + y += zone->y; + mw += offset_s*2; mh += offset_s*2; }