client: screen focus is handled by phys_screen

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-06 09:18:23 +02:00
parent 68cff957be
commit 118f504dc6
1 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ client_updatetitle(client_t *c)
static void static void
client_unfocus(client_t *c) client_unfocus(client_t *c)
{ {
globalconf.screens[c->screen].client_focus = NULL; globalconf.screens[c->phys_screen].client_focus = NULL;
/* Call hook */ /* Call hook */
luaA_client_userdata_new(globalconf.L, c); luaA_client_userdata_new(globalconf.L, c);
@ -244,7 +244,7 @@ client_focus(client_t *c)
/* unban the client before focusing or it will fail */ /* unban the client before focusing or it will fail */
client_unban(c); client_unban(c);
globalconf.screen_focus = &globalconf.screens[c->screen]; globalconf.screen_focus = &globalconf.screens[c->phys_screen];
globalconf.screen_focus->client_focus = c; globalconf.screen_focus->client_focus = c;
xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_POINTER_ROOT, xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_POINTER_ROOT,
@ -666,7 +666,7 @@ client_unmanage(client_t *c)
{ {
tag_array_t *tags = &globalconf.screens[c->screen].tags; tag_array_t *tags = &globalconf.screens[c->screen].tags;
if(globalconf.screens[c->screen].client_focus == c) if(globalconf.screens[c->phys_screen].client_focus == c)
client_unfocus(c); client_unfocus(c);
/* call hook */ /* call hook */