[magnifier] Use the focus stacking order

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-27 22:00:51 +02:00
parent e4bd29c274
commit bff3b1778b
1 changed files with 6 additions and 2 deletions

View File

@ -54,7 +54,9 @@ layout_magnifier(int screen)
client_resize(focus, geometry, globalconf.resize_hints);
client_raise(focus);
for(c = globalconf.clients; c; c = c->next)
for(c = client_list_prev_cycle(&globalconf.clients, focus);
c && c != focus;
c = client_list_prev_cycle(&globalconf.clients, c))
if(IS_TILED(c, screen) && c != focus)
n++;
@ -67,7 +69,9 @@ layout_magnifier(int screen)
geometry.height = area.height / n;
geometry.width = area.width;
for(c = globalconf.clients; c; c = c->next)
for(c = client_list_prev_cycle(&globalconf.clients, focus);
c && c != focus;
c = client_list_prev_cycle(&globalconf.clients, c))
if(IS_TILED(c, screen) && c != focus)
{
geometry.height -= 2 * c->border;