How to set appId in a GLFW application in wayland?

I noticed there seems to be no way to set the application id for the wayland backend (unless I have just failed miserably at find it). This is interesting since GLFW uses the xdg-shell protocol internally and most compositors rely on the app id to determine the corresponding .desktop file for the application. Surely this could be implemented as a pre-init hint for GLFW?

In the meantime, is there a way to set the app id? I can’t seem to figure out a way to get access to the underlying xdg_surface or xdg_toplevel so I am not sure where to even begin.



Hi @RobbyDwayne, welcome to the GLFW forum,

The GLFW_WAYLAND_APP_ID Window hint now exists for GLFW on Wayland. You can use this with the latest source from Github.

Also see: