tests: Fix awful.screen tests

To ensure that some features such as SNID rules work, we need
to ensure that the screen isn't set by other code paths. Only
a single algorithm can be executed for the screen. As soon
as many algorithms are executed on events such as "manage", it
will most likely regress again.

This commit make sure of that by disabling the default normal source
of c.screen. After that, any other c.screen changes can be
considered bugs.
This commit is contained in:
Emmanuel Lepage Vallee 2016-09-23 23:50:17 -04:00
parent 204e2ffada
commit c7f5a9acd3
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ end
local has_error local has_error
-- Disable awful.screen.preferred(c)
awful.rules.rules[1].properties.screen = nil
table.insert(steps, function() table.insert(steps, function()
-- Make sure there is no extra callbacks that causes double screen changes -- Make sure there is no extra callbacks that causes double screen changes
-- (regress #1028 #1052) -- (regress #1028 #1052)