From 67c56d35a42e95c3a90d3fb44233877304a00591 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 6 Nov 2008 16:13:29 +0100 Subject: [PATCH] max: use phys_screen to get focus client (FS#366) Physical screen have focus client, not logical ones. Signed-off-by: Julien Danjou --- layouts/max.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/max.c b/layouts/max.c index 2f1c23011..b2805c8e6 100644 --- a/layouts/max.c +++ b/layouts/max.c @@ -30,6 +30,7 @@ static void layout_fmax(int screen, bool fs) { client_t *c; + int phys_screen = screen_virttophys(screen); area_t area = screen_area_get(screen, fs ? NULL : &globalconf.screens[screen].wiboxes, fs ? NULL : &globalconf.screens[screen].padding, @@ -45,8 +46,8 @@ layout_fmax(int screen, bool fs) area.height += 2 * c->border; } - if(IS_TILED(globalconf.screens[screen].client_focus, screen)) - client_raise(globalconf.screens[screen].client_focus); + if(IS_TILED(globalconf.screens[phys_screen].client_focus, screen)) + client_raise(globalconf.screens[phys_screen].client_focus); } void