From 831e92410e090c02c70c4002bcf91beebb46baf0 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 24 Dec 2018 23:48:22 -0500 Subject: [PATCH] tag.layouts: Skip get_layout when looking for the current layout. If the `layouts` are set during initialization, `t.layout` will return `floating` if `t.layouts` is added before `t.layout`. By using the raw layout, the fallback doesn't kicks in. --- lib/awful/tag.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index 200d9c6a4..a5bd52f1f 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -854,7 +854,10 @@ end function tag.object.set_layouts(self, layouts) tag.setproperty(self, "_custom_layouts", {}) tag.setproperty(self, "_layouts", gtable.clone(layouts, false)) - update_layouts(self, self.layout, self.layout) + + local cur = tag.getproperty(self, "layout") + update_layouts(self, cur, cur) + self:emit_signal("property::layouts") end