From: Michael Stapelberg Date: Fri, 26 Jun 2009 02:39:59 +0000 (+0200) Subject: Bugfix: When a window is fullscreen, put new windows after that one in focus stack... X-Git-Tag: 3.b~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd053c254b7767e39f60855e51deb811a6f4f8c3;p=i3%2Fi3 Bugfix: When a window is fullscreen, put new windows after that one in focus stack (Thanks Volker) --- diff --git a/src/manage.c b/src/manage.c index 203a66d9..d4641dbc 100644 --- a/src/manage.c +++ b/src/manage.c @@ -371,7 +371,9 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, CIRCLEQ_INSERT_AFTER(&(new->container->clients), old_focused, new, clients); else CIRCLEQ_INSERT_TAIL(&(new->container->clients), new, clients); - SLIST_INSERT_HEAD(&(new->container->workspace->focus_stack), new, focus_clients); + if (new->container->workspace->fullscreen_client != NULL) + SLIST_INSERT_AFTER(new->container->workspace->fullscreen_client, new, focus_clients); + else SLIST_INSERT_HEAD(&(new->container->workspace->focus_stack), new, focus_clients); client_set_below_floating(conn, new); }