Is it possible to set titlebar to empty string?

OK this may seem stupid, but is it possible to set the titlebar to the
empty string? (i.e. SDL_SetWindowTitle(window, “”)) Because apparently
I can’t get that to work (it just goes ignored?). I know people
probably may think this is useless, but it seems to be an
inconsistency if that’s the case.

Using Gnome Classic here, dunno if that’s relevant or if it’s platform agnostic.

(ps: in case anybody wonders, I’m using the titlebar to output text if
certain setting is enabled, it’s one of the fallbacks I provide when
using a screen reader directly isn’t an option - and yes I know I need
to work on that API too…)

2015-03-10 13:40 GMT-03:00, Sik the hedgehog <@Sik_the_hedgehog>:

Using Gnome Classic here, dunno if that’s relevant or if it’s platform
agnostic.

OK screw that, it doesn’t seem to happen on Windows, so I’ll just
assume it’s a bug and file a bug report:
https://bugzilla.libsdl.org/show_bug.cgi?id=2902

Same on KDE4/kwin, SDL_SetWindowTitle(win, “”); has no effect,
SDL_SetWindowTitle(win, " "); does, though.

Looking at the code, if the given title is NULL or “”, the window’s
title is set to NULL and the window 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.

Cheers,
DanielOn 03/10/2015 06:15 PM, Sik the hedgehog wrote:

2015-03-10 13:40 GMT-03:00, Sik the hedgehog <sik.the.hedgehog at gmail.com>:

Using Gnome Classic here, dunno if that’s relevant or if it’s platform
agnostic.

OK screw that, it doesn’t seem to happen on Windows, so I’ll just
assume it’s a bug and file a bug report:
https://bugzilla.libsdl.org/show_bug.cgi?id=2902

would " " (space) not be rather more failsafe?On Tue, Mar 10, 2015 at 10:54 AM, Daniel Gibson wrote:

On 03/10/2015 06:15 PM, Sik the hedgehog wrote:

2015-03-10 13:40 GMT-03:00, Sik the hedgehog <sik.the.hedgehog at gmail.com

:

Using Gnome Classic here, dunno if that’s relevant or if it’s platform
agnostic.

OK screw that, it doesn’t seem to happen on Windows, so I’ll just
assume it’s a bug and file a bug report:
https://bugzilla.libsdl.org/show_bug.cgi?id=2902

Same on KDE4/kwin, SDL_SetWindowTitle(win, “”); has no effect,
SDL_SetWindowTitle(win, " "); does, though.

Looking at the code, if the given title is NULL or “”, the window’s title
is set to NULL and the window 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.

Cheers,
Daniel


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

2015-03-10 14:54 GMT-03:00, Daniel Gibson :

Looking at the code, if the given title is NULL or “”, the window’s
title is set to NULL and the window 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.

Well, that’d explain it. Can we just make the titlebar be set to ""
when it’s NULL in the X11 version?