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:
parent
922f5a50da
commit
67c56d35a4
|
@ -30,6 +30,7 @@ static void
|
||||||
layout_fmax(int screen, bool fs)
|
layout_fmax(int screen, bool fs)
|
||||||
{
|
{
|
||||||
client_t *c;
|
client_t *c;
|
||||||
|
int phys_screen = screen_virttophys(screen);
|
||||||
area_t area = screen_area_get(screen,
|
area_t area = screen_area_get(screen,
|
||||||
fs ? NULL : &globalconf.screens[screen].wiboxes,
|
fs ? NULL : &globalconf.screens[screen].wiboxes,
|
||||||
fs ? NULL : &globalconf.screens[screen].padding,
|
fs ? NULL : &globalconf.screens[screen].padding,
|
||||||
|
@ -45,8 +46,8 @@ layout_fmax(int screen, bool fs)
|
||||||
area.height += 2 * c->border;
|
area.height += 2 * c->border;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IS_TILED(globalconf.screens[screen].client_focus, screen))
|
if(IS_TILED(globalconf.screens[phys_screen].client_focus, screen))
|
||||||
client_raise(globalconf.screens[screen].client_focus);
|
client_raise(globalconf.screens[phys_screen].client_focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue