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 - Wayland: Set "class" for each window we create
Summary: Wayland: Set "class" for each window we create
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-23 15:18 UTC by Bastien Nocera
Modified: 2016-09-01 08:23 UTC (History)
2 users (show)

See Also:


Attachments
Wayland: Set "class" for each window we create (4.35 KB, patch)
2016-06-23 15:19 UTC, Bastien Nocera
Details | Diff
Wayland: Set "class" for each window we create (4.53 KB, patch)
2016-06-23 15:33 UTC, Bastien Nocera
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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