max: use phys_screen to get focus client (FS#366)

Physical screen have focus client, not logical ones.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-06 16:13:29 +01:00
parent 922f5a50da
commit 67c56d35a4

View file

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