Skip to content

Commit

Permalink
PulseAudio: get the window title for the context name if it wasn't se…
Browse files Browse the repository at this point in the history
…t already.

Will still fall back to get_progname() if it can't figure out the title.
  • Loading branch information
icculus committed Jan 24, 2010
1 parent e5da12a commit 6b14861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/audio/pulse/SDL_pulseaudio.c
Expand Up @@ -497,7 +497,9 @@ static int PULSE_OpenAudio(_THIS, SDL_AudioSpec *spec)
}

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);
Expand Down

0 comments on commit 6b14861

Please sign in to comment.