From 5657f85c83a00600c4a534bd5f6ff1d79c5dd20e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 7 Jun 2024 01:12:04 -0400 Subject: [PATCH] Update Window.SetIcon --- x/window.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {