tests: Use rawget to avoid trigerring the tripwire.
The next commit will introduce extra checks that would otherwise break this.
This commit is contained in:
parent
b2ebf899d7
commit
1617c894cc
|
@ -35,8 +35,8 @@ local function draw_mouse(x, y)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Print an outline for the screens
|
-- Print an outline for the screens
|
||||||
if not screen.no_outline then
|
if not rawget(screen, "no_outline") then
|
||||||
for _, s in ipairs(screen) do
|
for s in screen do
|
||||||
cr:save()
|
cr:save()
|
||||||
-- Draw the screen outline
|
-- Draw the screen outline
|
||||||
cr:set_source(color("#00000044"))
|
cr:set_source(color("#00000044"))
|
||||||
|
|
|
@ -78,7 +78,7 @@ end
|
||||||
|
|
||||||
function screen._get_extents()
|
function screen._get_extents()
|
||||||
local xmax, ymax
|
local xmax, ymax
|
||||||
for _, v in ipairs(screen) do
|
for v in screen do
|
||||||
if not xmax or v.geometry.x+v.geometry.width > xmax.geometry.x+xmax.geometry.width then
|
if not xmax or v.geometry.x+v.geometry.width > xmax.geometry.x+xmax.geometry.width then
|
||||||
xmax = v
|
xmax = v
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue