Linux/X11 can't display window icon properly
Hi,
Thank you for developing this remarkable render engine.
I'm currently developing a simulation software based on miniquad on Linux. I noticed that window icon support for Linux/X11 was added in this PR, and I'm trying to implement an icon for my application.
However, despite the merged changes, I'm still unable to see any window icon on my Linux/X11 system. I've tested this with the triangle example, and the window still does not show icon (please see the attached screenshot).
Based on my debugging:
- I've verified that the update_window_icon function is being called with the proper icon data (confirmed via debug prints)
- On windows icon can be displayed properly
- On my Linux/X11 system, no window icon appears
Below are the specifications of my system:
- OS: Ubuntu 20.04.6 LTS
- XDisplay:
- version number: 11.0
- X.org version: 1.20.13
Could you help confirm if there are any additional X11-specific steps needed to properly implement the window icon functionality?
Additionally, could you provide the specifications of the machine you tested on? This would help me address the issue by upgrading my system accordingly.
Thank you for your time.
I think this is a gnome-specific thing: see https://discourse.gnome.org/t/5243
TL;DR gnome uses WM_CLASS and the .desktop entry to determine the icon. So miniquad needs to set a correct WM_CLASS, which might not be the same as the window title. Probably should be put in the Platform struct?