mirror of https://github.com/lcpz/lain.git
Use the first client(master) as the central window
This commit is contained in:
parent
e00ee3436e
commit
44facf1624
|
@ -37,7 +37,7 @@ function centerwork.arrange(p)
|
||||||
if #cls > 0
|
if #cls > 0
|
||||||
then
|
then
|
||||||
-- Main column, fixed width and height.
|
-- Main column, fixed width and height.
|
||||||
local c = cls[#cls]
|
local c = cls[1]
|
||||||
local g = {}
|
local g = {}
|
||||||
local mainwid = math.floor(wa.width * mwfact)
|
local mainwid = math.floor(wa.width * mwfact)
|
||||||
local slavewid = wa.width - mainwid
|
local slavewid = wa.width - mainwid
|
||||||
|
@ -57,7 +57,7 @@ function centerwork.arrange(p)
|
||||||
if #cls > 1
|
if #cls > 1
|
||||||
then
|
then
|
||||||
local at = 0
|
local at = 0
|
||||||
for i = (#cls - 1),1,-1
|
for i = (#cls),2,-1
|
||||||
do
|
do
|
||||||
-- It's all fixed. If there are more than 5 clients,
|
-- It's all fixed. If there are more than 5 clients,
|
||||||
-- those additional clients will float. This is
|
-- those additional clients will float. This is
|
||||||
|
|
Loading…
Reference in New Issue