From 6511042f82d5511ffb6992288912c1ffdff74d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Thu, 3 Sep 2009 15:38:02 +0200 Subject: [PATCH] client: Fix get_client_in_direction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both is_in_direction() and calculate_distance() expect clients instead of geometries. Signed-off-by: Sébastien Gross Signed-off-by: Julien Danjou --- lib/awful/client.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index bfd361ff..61f4c6df 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -297,10 +297,10 @@ local function get_client_in_direction(dir, c) -- We check each client. for i, c in ipairs(cls) do -- Check geometry to see if client is located in the right direction. - if is_in_direction(dir, geometry, c:geometry()) then + if is_in_direction(dir, sel, c) then -- Calculate distance between focused client and checked client. - dist = calculate_distance(dir, geometry, c:geometry()) + dist = calculate_distance(dir, sel, c) -- If distance is shorter then keep the client. if not target or dist < dist_min then