Merge pull request #57 from axujen/centerwork-master-fix

layout.centerwork: Use the first client (master) as the central window.
This commit is contained in:
Luke Bonham 2014-08-08 13:30:47 +02:00
commit 6e43bfa512
1 changed files with 2 additions and 2 deletions

View File

@ -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