fjvallarino/monomer

Feature request: allow setting the window icon

Closed this issue · 2 comments

I think it would be great if AppConfig allowed setting the window icon.

As far as I can see (hopefully I am wrong!), the Haskell SDL package does not currently provide any way of doing this that does not involve unsafeCoerce (to turn SDL.Video.Window into Ptr ()), so this would involve a feature request/PR to that project too.

If this is considered desirable, I can put together the necessary PRs.

Being able to set the window icon would be great! If you need the feature now, I'm fine with having a function calling unsafeCoerce or using any of the Raw modules. I'm already using some of them for setting the active cursor.

Of course, having the features upstream is ideal, but releasing a new SDL2 version may take a while. It's up to you.

This was done in #79