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:
Emmanuel Lepage Vallee 2019-08-11 04:06:09 -04:00
parent b2ebf899d7
commit 1617c894cc
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ local function draw_mouse(x, y)
end
-- Print an outline for the screens
if not screen.no_outline then
for _, s in ipairs(screen) do
if not rawget(screen, "no_outline") then
for s in screen do
cr:save()
-- Draw the screen outline
cr:set_source(color("#00000044"))

View File

@ -78,7 +78,7 @@ end
function screen._get_extents()
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
xmax = v
end