[focus] Fix bogus arguments
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
89daa72790
commit
816b5d16bc
2
ewmh.c
2
ewmh.c
|
@ -238,7 +238,7 @@ void
|
|||
ewmh_update_net_active_window(int phys_screen)
|
||||
{
|
||||
xcb_window_t win;
|
||||
client_t *sel = focus_client_getcurrent(phys_screen);
|
||||
client_t *sel = focus_client_getcurrent(globalconf.screens[phys_screen].workspace);
|
||||
|
||||
win = sel ? sel->win : XCB_NONE;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ layout_magnifier(workspace_t *ws)
|
|||
globalconf.screens[screen].statusbar,
|
||||
&globalconf.screens[screen].padding);
|
||||
|
||||
focus = focus_client_getcurrent(screen);
|
||||
focus = focus_client_getcurrent(ws);
|
||||
|
||||
/* If focused window is not tiled, take the first one which is tiled. */
|
||||
if(!IS_TILED(focus, screen))
|
||||
|
|
|
@ -46,7 +46,7 @@ layout_max(workspace_t *ws)
|
|||
area.height += 2 * c->border;
|
||||
}
|
||||
|
||||
if((focus = focus_client_getcurrent(screen))
|
||||
if((focus = focus_client_getcurrent(ws))
|
||||
&& IS_TILED(focus, screen))
|
||||
client_raise(focus);
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ tasklist_isvisible(client_t *c, int screen, showclient_t show)
|
|||
case ShowWorkspace:
|
||||
return client_isvisible(c, screen);
|
||||
case ShowFocus:
|
||||
return (c == focus_client_getcurrent(screen));
|
||||
return (c == focus_client_getcurrent(globalconf.screens[screen].workspace));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue