From: Michael Stapelberg Date: Sun, 15 Mar 2009 19:52:43 +0000 (+0100) Subject: Bugfix: Only actively change focus if this is the current container X-Git-Tag: 3.a~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74465a562a8f83de8feceb1da69c80956f5fa591;p=i3%2Fi3 Bugfix: Only actively change focus if this is the current container --- diff --git a/src/handlers.c b/src/handlers.c index 343fe077..00a7b06d 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -577,7 +577,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); + /* Only if this is the active container, we need to really change focus */ + if (con == CUR_CELL) + set_focus(conn, focus_client); break; } }