From 017a0c0d080f9c38c9d0fe4a6e2d83577c213ffb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 6 Mar 2009 17:13:20 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20set=20focus=20outside=20of=20th?= =?UTF-8?q?e=20current=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index dce8fd79..939fe636 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -456,12 +456,9 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti SLIST_FOREACH(focus_client, &(con->workspace->focus_stack), focus_clients) if (focus_client->container == con) { con->currently_focused = focus_client; + set_focus(conn, focus_client); break; } - - /* Actually set focus, if there is a window which should get it */ - if (!SLIST_EMPTY(&(con->workspace->focus_stack))) - set_focus(conn, SLIST_FIRST(&(con->workspace->focus_stack))); } LOG("child of 0x%08x.\n", client->frame);