From: Axujen Date: Wed, 30 Jul 2014 14:37:20 +0000 (+0000) Subject: Use the first client(master) as the central window X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/af3bcd29922f918780b42273d6d174e7d2b0a0d1?ds=sidebyside;hp=-c Use the first client(master) as the central window --- af3bcd29922f918780b42273d6d174e7d2b0a0d1 diff --git a/layout/centerwork.lua b/layout/centerwork.lua index b8175ea..939f18c 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -37,7 +37,7 @@ function centerwork.arrange(p) if #cls > 0 then -- Main column, fixed width and height. - local c = cls[#cls] + local c = cls[1] local g = {} local mainwid = math.floor(wa.width * mwfact) local slavewid = wa.width - mainwid @@ -57,7 +57,7 @@ function centerwork.arrange(p) if #cls > 1 then local at = 0 - for i = (#cls - 1),1,-1 + for i = (#cls),2,-1 do -- It's all fixed. If there are more than 5 clients, -- those additional clients will float. This is