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:
parent
204e2ffada
commit
c7f5a9acd3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue