From e528cc7e505c5cc1920edf654feebcbd8cca8865 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 7 Nov 2008 14:27:29 +0100 Subject: [PATCH] awful.client: rename master to getmaster 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 d91ce019..e4bb1282 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in @@ -362,11 +362,17 @@ setmetatable(swap, { __call = __swap }) --- Get the master window. -- @param screen Optional screen number, otherwise screen mouse is used. -- @return The master window. -function master(screen) +function getmaster(screen) local s = screen or capi.mouse.screen return visible(s)[1] end +--- Get the master window, deprecated, see getmaster(). +function master(screen) + util.deprecate() + getmaster(screen) +end + -- Set the client as slave: put it at the end of other windows. -- @param c The window to set as slave. function setslave(c) @@ -454,7 +460,7 @@ function toggletag(target, c) end --- Toggle the floating status of a client. --- @param c Optional client, the focused on if not set. +-- @param c Optional client, the focused one if not set. function togglefloating(c) local sel = c or capi.client.focus if sel then