[layouts] Max and Magnifier need to raise clients

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

View file

@ -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)

View file

@ -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