Fix menu windows not being override redirect

This commit is contained in:
Sasha Koshka 2024-09-12 02:51:20 -04:00
parent b58932f02b
commit 51afca6a3f

View File

@ -70,7 +70,7 @@ func (this *windowLink) NotifyMinimumSizeChange () {
func (this *Backend) NewWindow (kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error) {
this.assert()
window, err := this.newWindow(bounds, false)
window, err := this.newWindow(bounds, kind == tomo.WindowKindMenu)
if err != nil { return nil, err }
window.setKind(kind)
return window, nil
@ -244,7 +244,7 @@ func (this *window) NewChild (kind tomo.WindowKind, bounds image.Rectangle) (tom
leader := this.leader
child, err := this.backend.newWindow (
bounds.Add(this.metrics.innerBounds.Min), false)
bounds.Add(this.metrics.innerBounds.Min), kind == tomo.WindowKindMenu)
if err != nil { return nil, err }
child.leader = leader