Remove unsatisifiable condition when destination screen is empty

This commit fixes the following issue: https://github.com/awesomeWM/awesome/issues/2365
This commit is contained in:
Peter Kasza 2018-08-21 13:19:02 +02:00
parent 81da3a2ce7
commit 016be728b1
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ function client.swap.global_bydirection(dir, sel)
c:swap(sel) c:swap(sel)
-- swapping to an empty screen -- 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()) sel:move_to_screen(screen.focused())
-- swapping to a nonempty screen -- swapping to a nonempty screen