From 1ff57401044482fed670e7d6dff313c4eb0191eb Mon Sep 17 00:00:00 2001 From: Toshihide Shimayama Date: Sat, 17 Nov 2007 08:37:42 +0100 Subject: [PATCH] uicb_client_zoom() on nmaster swap with next window --- layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout.c b/layout.c index 99569375c..90f6c2a43 100644 --- a/layout.c +++ b/layout.c @@ -302,6 +302,9 @@ uicb_client_zoom(awesome_config *awesomeconf, { Client *sel = get_current_tag(awesomeconf->tags, awesomeconf->ntags)->client_sel; + if(*awesomeconf->clients == sel) + for(sel = sel->next; sel && !isvisible(sel, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags); sel = sel->next); + if(!sel) return;