Set transient for on panels

This makes panels behave as expected. It feels incredibly wrong but
shotcut does it, it can't be that bad.
This commit is contained in:
Sasha Koshka 2023-03-24 22:49:53 -04:00
parent 3aa8495873
commit 6a3f45a2e0
1 changed files with 5 additions and 0 deletions

View File

@ -229,6 +229,11 @@ func (window mainWindow) NewPanel (width, height int) (elements.Window, error) {
panel, err := window.backend.newWindow(width, height)
if err != nil { return nil, err }
panel.setClientLeader(window.window)
window.setClientLeader(window.window)
icccm.WmTransientForSet (
window.backend.connection,
panel.xWindow.Id,
window.xWindow.Id)
panel.setType("UTILITY")
return panel, err
}