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.
This commit is contained in:
Emmanuel Lepage Vallee 2018-12-24 23:48:22 -05:00
parent 2892648916
commit 831e92410e
1 changed files with 4 additions and 1 deletions

View File

@ -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