From 80ba6a0aa991d07dbcd44daec9c706405cd8f2d1 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Fri, 2 Oct 2020 19:19:51 +0200 Subject: [PATCH] Fix tiled clients swapping with non tiling and/or maximized clients --- simple/tiling.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/simple/tiling.lua b/simple/tiling.lua index f67a233..e303f2e 100644 --- a/simple/tiling.lua +++ b/simple/tiling.lua @@ -53,13 +53,15 @@ local screenRight = function(geo) end end -local swapClient = function(c, dir, stacked) +local swapClient = function(c, dir) local sel = c or capi.client.focus if sel then - local cltbl = awful.client.visible(sel.screen, stacked) + local cltbl = sel.screen.tiled_clients local geomtbl = {} for i,cl in ipairs(cltbl) do - geomtbl[i] = cl:geometry() + if not cl.maximized then + geomtbl[i] = cl:geometry() + end end local target = grect.get_in_direction(dir, geomtbl, sel:geometry())