System Information
Operating system: Fedora 36
Blender Version
Broken: 3.4.0-alpha+master.f0e1089a33f4
When running Blender on Wayland the id reported to xdg-shell via set_app_id is incorrect.
In https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/intern/ghost/intern/GHOST_WindowWayland.cpp#l647 it is set to the same as the window title.
This results in it being "Blender". However, the id should match the desktop file name, which for the version downloaded from blender.org is "blender" (lowercase). For the version installed from Flathub the correct value would be "org.blender.Blender"
Quoting https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:set_app_id:
As a best practice, it is suggested to select app ID's that match the basename of the application's .desktop file. For example, "org.freedesktop.FooViewer" where the .desktop file is "org.freedesktop.FooViewer.desktop".
This can be confirmed via "WAYLAND_DEBUG=1 ./blender 2>&1 | grep set_app_id", which shows the call to set_app_id with the wrong value.
This causes for example the window icon being wrong in Plasma Wayland, but there are potentially more things broken because of that.