From 118f504dc614c9eac0cd3a43c1c6a82c3dff2784 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 6 Sep 2008 09:18:23 +0200 Subject: [PATCH] client: screen focus is handled by phys_screen Signed-off-by: Julien Danjou --- client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 08ab86aea..8be315380 100644 --- a/client.c +++ b/client.c @@ -196,7 +196,7 @@ client_updatetitle(client_t *c) static void client_unfocus(client_t *c) { - globalconf.screens[c->screen].client_focus = NULL; + globalconf.screens[c->phys_screen].client_focus = NULL; /* Call hook */ 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 */ client_unban(c); - globalconf.screen_focus = &globalconf.screens[c->screen]; + globalconf.screen_focus = &globalconf.screens[c->phys_screen]; globalconf.screen_focus->client_focus = c; 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; - if(globalconf.screens[c->screen].client_focus == c) + if(globalconf.screens[c->phys_screen].client_focus == c) client_unfocus(c); /* call hook */