From e317a70feac92a5d6395139189d3d1cf51fafcb1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 22:04:41 +0200 Subject: [PATCH] [max] Only raise if focused window is tiled Signed-off-by: Julien Danjou --- layouts/max.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/max.c b/layouts/max.c index da685520f..90f47a303 100644 --- a/layouts/max.c +++ b/layouts/max.c @@ -45,7 +45,8 @@ layout_max(int screen) area.height += 2 * c->border; } - if((focus = focus_get_current_client(screen))) + if((focus = focus_get_current_client(screen)) + && IS_TILED(focus, screen)) client_raise(focus); } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80