corner layout: Don't set geometries directly
Since commit 52ec0ebd93
, layouts should return the geometries to their caller
instead of setting them directly. The caller will also fix up the geometries for
border width.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a64cd26f62
commit
75f2f6bf86
|
@ -110,28 +110,28 @@ local function do_corner(p, orientation)
|
||||||
g = {
|
g = {
|
||||||
x = master.x,
|
x = master.x,
|
||||||
y = master.y,
|
y = master.y,
|
||||||
width = master.width - (2 * c.border_width),
|
width = master.width,
|
||||||
height = master.height - (2 * c.border_width)
|
height = master.height
|
||||||
}
|
}
|
||||||
-- handle column windows
|
-- handle column windows
|
||||||
elseif i % 2 == 0 then
|
elseif i % 2 == 0 then
|
||||||
g = {
|
g = {
|
||||||
x = column.x + column.win_idx * column.x_increment,
|
x = column.x + column.win_idx * column.x_increment,
|
||||||
y = column.y + column.win_idx * column.y_increment,
|
y = column.y + column.win_idx * column.y_increment,
|
||||||
width = column.win_width - (2 * c.border_width),
|
width = column.win_width,
|
||||||
height = column.win_height - (2 * c.border_width)
|
height = column.win_height
|
||||||
}
|
}
|
||||||
column.win_idx = column.win_idx + 1
|
column.win_idx = column.win_idx + 1
|
||||||
else
|
else
|
||||||
g = {
|
g = {
|
||||||
x = row.x + row.win_idx * row.x_increment,
|
x = row.x + row.win_idx * row.x_increment,
|
||||||
y = row.y + row.win_idx * row.y_increment,
|
y = row.y + row.win_idx * row.y_increment,
|
||||||
width = row.win_width - (2 * c.border_width),
|
width = row.win_width,
|
||||||
height = row.win_height - (2 * c.border_width)
|
height = row.win_height
|
||||||
}
|
}
|
||||||
row.win_idx = row.win_idx + 1
|
row.win_idx = row.win_idx + 1
|
||||||
end
|
end
|
||||||
c:geometry(g)
|
p.geometries[c] = g
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue