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:
parent
2892648916
commit
831e92410e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue