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

Summary: SDL_SetWindowTitle not setting the window title on Gnome Classic
Product: SDL Reporter: Sik <sik.the.hedgehog>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus, metalcaedes
Version: HG 2.0Keywords: target-2.0.4, triage-2.0.4
Hardware: x86_64   
OS: Linux   

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.