subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
112 stars 16 forks source link

Implementing set_window_icon on Linux #103

Open GreenXenith opened 4 years ago

GreenXenith commented 4 years ago

Opening this because I don't currently understand how to execute the theoretical steps.

In theory, this is achieved by loading the image, converting to RGBA, turning it into a pixmap, and setting it as the _NET_WM_ICON property using XChangeProperty. Someone with more understanding of C++ and images should be able to implement this with relative ease.

It is worth noting xseticon, which uses libgd for color conversions and loading, but I am not certain if this is helpful.