From 016be728b1e05bced16ecb77c0f89eb1ff434e81 Mon Sep 17 00:00:00 2001 From: Peter Kasza Date: Tue, 21 Aug 2018 13:19:02 +0200 Subject: [PATCH] Remove unsatisifiable condition when destination screen is empty This commit fixes the following issue: https://github.com/awesomeWM/awesome/issues/2365 --- lib/awful/client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 61b976811..827c73751 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -226,7 +226,7 @@ function client.swap.global_bydirection(dir, sel) c:swap(sel) -- swapping to an empty screen - elseif get_screen(sel.screen) ~= get_screen(c.screen) and sel == c then + elseif sel == c then sel:move_to_screen(screen.focused()) -- swapping to a nonempty screen