From 08555a4fedaf5e759b798ef507c417ae35345c0b Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 26 May 2017 12:26:36 +0200 Subject: [PATCH] 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 --- tests/test-maximize.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-maximize.lua b/tests/test-maximize.lua index 48fc01f73..21ff9c185 100644 --- a/tests/test-maximize.lua +++ b/tests/test-maximize.lua @@ -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,