From: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Both is_in_direction() and calculate_distance() expect clients
instead of geometries.
Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
---
lib/awful/client.lua.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in
index bfd361f..61f4c6d 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
--
1.5.6.5
--
To unsubscribe, send mail to [email protected].