[focus] Fix bogus arguments

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-09 18:17:42 +02:00
parent 89daa72790
commit 816b5d16bc
4 changed files with 4 additions and 4 deletions

2
ewmh.c
View File

@ -238,7 +238,7 @@ void
ewmh_update_net_active_window(int phys_screen) ewmh_update_net_active_window(int phys_screen)
{ {
xcb_window_t win; 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; win = sel ? sel->win : XCB_NONE;

View File

@ -37,7 +37,7 @@ layout_magnifier(workspace_t *ws)
globalconf.screens[screen].statusbar, globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding); &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 focused window is not tiled, take the first one which is tiled. */
if(!IS_TILED(focus, screen)) if(!IS_TILED(focus, screen))

View File

@ -46,7 +46,7 @@ layout_max(workspace_t *ws)
area.height += 2 * c->border; area.height += 2 * c->border;
} }
if((focus = focus_client_getcurrent(screen)) if((focus = focus_client_getcurrent(ws))
&& IS_TILED(focus, screen)) && IS_TILED(focus, screen))
client_raise(focus); client_raise(focus);
} }

View File

@ -57,7 +57,7 @@ tasklist_isvisible(client_t *c, int screen, showclient_t show)
case ShowWorkspace: case ShowWorkspace:
return client_isvisible(c, screen); return client_isvisible(c, screen);
case ShowFocus: case ShowFocus:
return (c == focus_client_getcurrent(screen)); return (c == focus_client_getcurrent(globalconf.screens[screen].workspace));
} }
return false; return false;
} }