Update Window.SetIcon
This commit is contained in:
parent
a9ac9f6600
commit
5657f85c83
@ -175,10 +175,11 @@ func (this *window) SetTitle (title string) {
|
|||||||
icccm.WmIconNameSet (this.backend.x, this.xWindow.Id, title)
|
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 { }
|
wmIcons := []ewmh.WmIcon { }
|
||||||
|
|
||||||
for _, icon := range sizes {
|
for _, icon := range sizes {
|
||||||
|
// TODO we use textures now. make this better
|
||||||
width := icon.Bounds().Max.X
|
width := icon.Bounds().Max.X
|
||||||
height := icon.Bounds().Max.Y
|
height := icon.Bounds().Max.Y
|
||||||
wmIcon := ewmh.WmIcon {
|
wmIcon := ewmh.WmIcon {
|
||||||
|
Loading…
Reference in New Issue
Block a user