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 120

Summary: Setting WM_CLASS under X11
Product: SDL Reporter: Sam Lantinga <slouken>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: don't know   
Hardware: x86   
OS: Linux   

Description Sam Lantinga 2006-01-31 09:21:03 UTC
Date: Wed, 26 Jan 2005 05:12:03 -0500
From: Dave Ahlswede <mightyquinn@letterboxes.org>
Subject: [SDL] Setting WM_CLASS under X11

Most X11 programs set the WM_CLASS hint based on the name of the binary
run, but SDL always seems to set it to SDL_App-- this is troublesome
with some window managers that use this hint to identify individual
programs-- Is there any reason behind the current behavior? If there
isn't, I'd strongly recommend acquiring the executable name and using
that for the class.
Comment 1 Sam Lantinga 2006-01-31 09:21:41 UTC
We have the SDL_VIDEO_X11_WMCLASS environment variable, but I agree, on platforms where we can determine the application name, we should use it.
Comment 2 Sam Lantinga 2006-02-03 02:39:49 UTC
This is implemented for Linux and (I think) FreeBSD.  Thanks!