From e4bd29c274ea72f26671fd5031089751169f080a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 21:46:23 +0200 Subject: [PATCH] [layouts] Max and Magnifier need to raise clients Signed-off-by: Julien Danjou --- layouts/magnifier.c | 1 + layouts/max.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/magnifier.c b/layouts/magnifier.c index 969e74001..463714391 100644 --- a/layouts/magnifier.c +++ b/layouts/magnifier.c @@ -52,6 +52,7 @@ layout_magnifier(int screen) geometry.x = area.x + (area.width - geometry.width) / 2; geometry.y = area.y + (area.height - geometry.height) / 2; client_resize(focus, geometry, globalconf.resize_hints); + client_raise(focus); for(c = globalconf.clients; c; c = c->next) if(IS_TILED(c, screen) && c != focus) diff --git a/layouts/max.c b/layouts/max.c index c81e07a3f..da685520f 100644 --- a/layouts/max.c +++ b/layouts/max.c @@ -22,6 +22,7 @@ #include "tag.h" #include "screen.h" #include "client.h" +#include "focus.h" #include "layouts/max.h" extern awesome_t globalconf; @@ -29,7 +30,7 @@ extern awesome_t globalconf; void layout_max(int screen) { - client_t *c; + client_t *c, *focus; area_t area = screen_get_area(screen, globalconf.screens[screen].statusbar, &globalconf.screens[screen].padding); @@ -43,5 +44,8 @@ layout_max(int screen) area.width += 2 * c->border; area.height += 2 * c->border; } + + if((focus = focus_get_current_client(screen))) + client_raise(focus); } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80