Update Window.SetIcon

This commit is contained in:
Sasha Koshka 2024-06-07 01:12:04 -04:00
parent a9ac9f6600
commit 5657f85c83

View File

@ -175,10 +175,11 @@ func (this *window) SetTitle (title string) {
icccm.WmIconNameSet (this.backend.x, this.xWindow.Id, title)
}
func (this *window) SetIcon (sizes ...image.Image) {
func (this *window) SetIcon (sizes ...canvas.Texture) {
wmIcons := []ewmh.WmIcon { }
for _, icon := range sizes {
// TODO we use textures now. make this better
width := icon.Bounds().Max.X
height := icon.Bounds().Max.Y
wmIcon := ewmh.WmIcon {