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 2902 - SDL_SetWindowTitle not setting the window title on Gnome Classic
Summary: SDL_SetWindowTitle not setting the window title on Gnome Classic
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.4, triage-2.0.4
Depends on:
Blocks:
 
Reported: 2015-03-10 17:15 UTC by Sik
Modified: 2015-04-08 06:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sik 2015-03-10 17:15:24 UTC
Trying to set the titlebar with SDL_SetWindowTitle to the empty string doesn't seem to work under Gnome Classic (didn't check non-Classic Gnome, it may also fail under other window managers). It *does* seem to work on Windows instead.

It's a relatively minor annoyance but it's an inconsistency and somebody may be relying on the titlebar to convey information (either for debugging or to pass it to other programs that pay attention to the caption of the focused GUI element).

Using Ubuntu 14.04 64-bit here.
Comment 1 Daniel Gibson 2015-03-10 17:58:19 UTC
This is indeed an inconsistency in the platform-specific backends:

If the given title is NULL or "", the SDL_window's title is set to NULL and it is then passed to the platform-specific SetWindowTitle() implementation.
And X11_SetWindowTitle indeed only changes the title if it's != NULL, while WIN_SetWindowTitle() calls SetWindowText() with "", if the title is NULL.

I didn't look at the other platform backends.
Comment 2 Ryan C. Gordon 2015-04-07 04:57:53 UTC
(sorry if you get a lot of copies of this email, I'm marking several bugs at once)

Marking bugs for the (mostly) final 2.0.4 TODO list. This means we're hoping to resolve this bug before 2.0.4 ships if possible. In a perfect world, the open bug count with the target-2.0.4 keyword is zero when we ship.

(Note that closing a bug report as WONTFIX, INVALID or WORKSFORME might still happen.)

--ryan.
Comment 3 Ryan C. Gordon 2015-04-08 06:05:31 UTC
This is now fixed in https://hg.libsdl.org/SDL/rev/067b78126485, thanks!

--ryan.