We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3376

Summary: Wayland: Set "class" for each window we create
Product: SDL Reporter: Bastien Nocera <bugzilla>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: bugzilla, philipp.wiesemann
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   
Attachments: Wayland: Set "class" for each window we create
Wayland: Set "class" for each window we create

Description Bastien Nocera 2016-06-23 15:18:26 UTC
As done in X11.
Comment 1 Bastien Nocera 2016-06-23 15:19:34 UTC
Created attachment 2515 [details]
Wayland: Set "class" for each window we create

This will be used by Wayland compositors to match the application ID and
.desktop file to the SDL window(s).

Applications can set the SDL_VIDEO_WAYLAND_WMCLASS environemnt variable
early in the process to override using the binary name as a fallback.

Note that we also support the SDL_VIDEO_X11_WMCLASS in the Wayland
backend so that if a program correctly associated the desktop file with
the window under X11, only a newer SDL would be needed for it to work
under Wayland.
Comment 2 Bastien Nocera 2016-06-23 15:33:58 UTC
Created attachment 2516 [details]
Wayland: Set "class" for each window we create

This will be used by Wayland compositors to match the application ID and
.desktop file to the SDL window(s).

Applications can set the SDL_VIDEO_WAYLAND_WMCLASS environemnt variable
early in the process to override using the binary name as a fallback.

Note that we also support the SDL_VIDEO_X11_WMCLASS in the Wayland
backend so that if a program correctly associated the desktop file with
the window under X11, only a newer SDL would be needed for it to work
under Wayland.
Comment 3 Sam Lantinga 2016-09-01 08:23:30 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/729eff9ee77a