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 - Setting WM_CLASS under X11
Summary: Setting WM_CLASS under X11
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: don't know
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 09:21 UTC by Sam Lantinga
Modified: 2006-02-03 02:39 UTC (History)
0 users

See Also:


Attachments

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