fix border offset
This commit is contained in:
parent
4e4bf44d2f
commit
cbd4099f8b
1 changed files with 5 additions and 9 deletions
|
@ -28,10 +28,11 @@ local function tile_group(cls, wa, orientation, fact, group)
|
||||||
|
|
||||||
-- A global border can be defined with
|
-- A global border can be defined with
|
||||||
-- beautiful.global_border_width
|
-- beautiful.global_border_width
|
||||||
global_border = tonumber(beautiful.global_border_width) or 0
|
local global_border = tonumber(beautiful.global_border_width) or 0
|
||||||
if global_border < 0 then global_border = 0 end
|
if global_border < 0 then global_border = 0 end
|
||||||
|
|
||||||
-- BW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
|
-- Themes border width requires an offset
|
||||||
|
local bw = tonumber(beautiful.border_width) or 0
|
||||||
|
|
||||||
-- get our orientation right
|
-- get our orientation right
|
||||||
local height = "height"
|
local height = "height"
|
||||||
|
@ -78,8 +79,8 @@ local function tile_group(cls, wa, orientation, fact, group)
|
||||||
--stat_coord = size
|
--stat_coord = size
|
||||||
for c = group.first,group.last do
|
for c = group.first,group.last do
|
||||||
local i = c - group.first +1
|
local i = c - group.first +1
|
||||||
geom[width] = size - global_border
|
geom[width] = size - global_border - (bw * 2)
|
||||||
geom[height] = math.floor(unused * fact[i] / total_fact)
|
geom[height] = math.floor(unused * fact[i] / total_fact) - (bw * 2)
|
||||||
geom[x] = group.coord + global_border + (useless_gap / 2)
|
geom[x] = group.coord + global_border + (useless_gap / 2)
|
||||||
geom[y] = coord + global_border + (useless_gap / 2)
|
geom[y] = coord + global_border + (useless_gap / 2)
|
||||||
|
|
||||||
|
@ -144,11 +145,6 @@ local function tile(param, orientation)
|
||||||
y = "x"
|
y = "x"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- A global border can be defined with
|
|
||||||
-- beautiful.global_border_width
|
|
||||||
global_border = tonumber(beautiful.global_border_width) or 0
|
|
||||||
if global_border < 0 then global_border = 0 end
|
|
||||||
|
|
||||||
local cls = param.clients
|
local cls = param.clients
|
||||||
local nmaster = math.min(tag.getnmaster(t), #cls)
|
local nmaster = math.min(tag.getnmaster(t), #cls)
|
||||||
local nother = math.max(#cls - nmaster,0)
|
local nother = math.max(#cls - nmaster,0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue