awful.layout.init: floating is default is none

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-28 12:00:34 +01:00
parent 7224676911
commit d95a16e837
1 changed files with 2 additions and 4 deletions

View File

@ -24,7 +24,7 @@ module("awful.layout")
-- @return The layout function. -- @return The layout function.
function get(screen) function get(screen)
local t = tag.selected(screen) local t = tag.selected(screen)
return tag.getproperty(t, "layout") or suit.tile return tag.getproperty(t, "layout") or suit.floating
end end
--- Change the layout of the current tag. --- Change the layout of the current tag.
@ -59,9 +59,7 @@ end
-- Register an arrange hook. -- Register an arrange hook.
local function on_arrange (screen) local function on_arrange (screen)
local t = tag.selected(screen) get(screen)(screen)
local l = tag.getproperty(t, "layout") or suit.tile
l(screen)
end end
local layouts_name = local layouts_name =