X backend window sets itself as parent (oops)

This commit is contained in:
Sasha Koshka 2023-03-15 01:43:32 -04:00
parent 275e113e3b
commit 1a66224648

View File

@ -103,6 +103,7 @@ func (window *window) Adopt (child elements.Element) {
// adopt new child
window.child = child
child.SetParent(window)
if newChild, ok := child.(elements.Themeable); ok {
newChild.SetTheme(window.theme)
}