# HG changeset patch # User Ryan C. Gordon # Date 1264363694 0 # Node ID 9134017bac3a5a3a8aa1c70aa0643a2297fbfd22 # Parent ae9c094e92001f11618ef910b0600baffb608928 PulseAudio: get the window title for the context name if it wasn't set already. Will still fall back to get_progname() if it can't figure out the title. diff -r ae9c094e9200 -r 9134017bac3a src/audio/pulse/SDL_pulseaudio.c --- a/src/audio/pulse/SDL_pulseaudio.c Sun Jan 24 17:54:57 2010 +0000 +++ b/src/audio/pulse/SDL_pulseaudio.c Sun Jan 24 20:08:14 2010 +0000 @@ -497,7 +497,9 @@ } if (this->hidden->caption == NULL) { - this->hidden->caption = SDL_strdup(get_progname()); + char *title = NULL; + SDL_WM_GetCaption(&title, NULL); + PULSE_SetCaption(this, title); } mainloop_api = SDL_NAME(pa_mainloop_get_api)(mainloop);