From dd053c254b7767e39f60855e51deb811a6f4f8c3 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Jun 2009 04:39:59 +0200 Subject: [PATCH] Bugfix: When a window is fullscreen, put new windows after that one in focus stack (Thanks Volker) --- src/manage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5