test-maximize: Restore old border width

When the border width changes, we move the client according to its
gravity. This can cause problems with the following code. Fix this by
restoring the original border width again, which undoes the move.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-05-26 12:26:36 +02:00
parent 9016a9296f
commit 08555a4fed
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,9 @@ local steps = {
assert(c.border_width == test_width)
-- Restore old border width
c.border_width = test_width - 1
return true
end,