From 063ae48438a8fdb46b00b66f43d7c79bd6fa14ac Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 24 Dec 2018 23:56:45 -0500 Subject: [PATCH] awful.tag: Select the fallback layout from the list of layouts. This isn't 100% consistent with the old fallback, but avoids the case where it has an explicit list to pick from and picks something else. --- lib/awful/tag.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index a5bd52f1..631914d5 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -862,7 +862,13 @@ function tag.object.set_layouts(self, layouts) end function tag.object.get_layout(t) - return tag.getproperty(t, "layout") or require("awful.layout.suit.floating") + local l = tag.getproperty(t, "layout") + if l then return l end + + local layouts = tag.getproperty(t, "_layouts") + + return layouts and layouts[1] + or require("awful.layout.suit.floating") end --- Set layout.