From 122e1cc28a987ff40771b4e871d6fbd2db8c62fb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 27 Feb 2009 15:40:01 +0100 Subject: [PATCH] awful.layout: make layout optional Signed-off-by: Julien Danjou --- lib/awful/layout/init.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index 8f08f8873..2a0fdf0fb 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -73,9 +73,10 @@ local function on_arrange (screen) end --- Get the current layout name. --- @param layout the layout name. +-- @param layout The layout. -- @return The layout name. function getname(layout) + local layout = layout or get() return layout.name end