From e258b907658722e2f7c1c1aa6d57d1a67efdb852 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 17 Oct 2007 15:21:11 +0200 Subject: [PATCH] reattach tabbed windows just after the master one when zoom()ing --- layout.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/layout.c b/layout.c index 81f6bd274..e8724e0d7 100644 --- a/layout.c +++ b/layout.c @@ -294,11 +294,19 @@ void uicb_zoom(awesome_config *awesomeconf, const char *arg __attribute__ ((unused))) { + Client *c, *sel = *awesomeconf->client_sel; + if(!*awesomeconf->client_sel) return; - client_detach(awesomeconf->clients, *awesomeconf->client_sel); - client_attach(awesomeconf->clients, *awesomeconf->client_sel); - focus(*awesomeconf->client_sel, True, awesomeconf); + + client_detach(awesomeconf->clients, sel); + client_attach(awesomeconf->clients, sel); + + /* reattach tabbed windows just after the master one */ + for(c = sel->tab.next; c; c = c->tab.next) + client_reattach_after(sel, c); + + focus(sel, True, awesomeconf); arrange(awesomeconf); }