diff --git a/x/window.go b/x/window.go index 83eabc1..223c632 100644 --- a/x/window.go +++ b/x/window.go @@ -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 {