From bf5001337c8299926d95ef15f80b81ba50382b4b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 24 Oct 2008 20:31:18 +0200 Subject: [PATCH] awful.client: rename focus and swap bydirection Signed-off-by: Julien Danjou --- lib/awful/client.lua.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index f63bfd9f..ebf1aa50 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -34,6 +34,7 @@ data.marked = {} urgent = {} focus = {} focus.history = {} +swap = {} -- User hooks hooks.user.create('marked') @@ -292,7 +293,7 @@ end --- Focus a client by the given direction. -- @param dir The direction, can be either "up", "down", "left" or "right". -- @param c Optional client. -function focusbydirection(dir, c) +function focus.bydirection(dir, c) local sel = c or capi.client.focus if sel then local target = get_client_in_direction(dir, sel) @@ -304,6 +305,11 @@ function focusbydirection(dir, c) end end +function focusbydirection(dir, c) + util.deprecate() + return focus.bydirection(dir, c) +end + function focusbyidx(i, c) util.deprecate() return focus.byidx(i, c) @@ -322,7 +328,7 @@ end --- Swap a client with another client in the given direction -- @param dir The direction, can be either "up", "down", "left" or "right". -- @param c Optional client. -function swapbydirection(dir, c) +function swap.bydirection(dir, c) local sel = c or capi.client.focus if sel then local target = get_client_in_direction(dir, sel) -- 2.11.4.GIT