From d005640f924ee6539439fb13999e424eff422204 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 2 Feb 2017 23:02:52 +0100 Subject: [PATCH] test-current-desktop: add extra step when killing a client Ref: https://github.com/awesomeWM/awesome/issues/1495#issuecomment-277098634 --- tests/test-current-desktop.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test-current-desktop.lua b/tests/test-current-desktop.lua index 7802bb2b..617de6e3 100644 --- a/tests/test-current-desktop.lua +++ b/tests/test-current-desktop.lua @@ -72,10 +72,13 @@ local steps = { wait_for_current_desktop(tags[4]), -- Killing the client means the first selected tag counts - function() - assert(client.focus == c) - c:kill() - c = nil + function(count) + if count == 1 then + assert(client.focus == c) + c:kill() + c = nil + return + end return true end, wait_for_current_desktop(tags[3]),