From f7995831010ed72af2f0ad2453ae279dc3072e09 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 23 Feb 2010 23:31:46 +0000 Subject: [PATCH] Update layout properly when zone changes size or moves. This should fix xrandr issue for TAsn ;) SVN revision: 46413 --- src/modules/illume2/policies/illume/policy.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/modules/illume2/policies/illume/policy.c b/src/modules/illume2/policies/illume/policy.c index 93d458aaa..5f22fff4b 100644 --- a/src/modules/illume2/policies/illume/policy.c +++ b/src/modules/illume2/policies/illume/policy.c @@ -1294,10 +1294,20 @@ _policy_zone_layout(E_Zone *zone) void _policy_zone_move_resize(E_Zone *zone) { + Eina_List *l; + E_Border *bd; + // printf("Zone move resize\n"); - /* zone size or position changed, tell layout to update */ - _policy_zone_layout(zone); + EINA_LIST_FOREACH(e_border_client_list(), l, bd) + { + /* skip borders not on this zone */ + if (bd->zone != zone) continue; + + /* signal a changed pos here so layout gets updated */ + bd->changes.pos = 1; + bd->changed = 1; + } } void