From e9a7a81f2816354923238c64a80b73176189651d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 19 Mar 2015 22:20:12 -0400 Subject: [PATCH] Immediately minimize the goofy window in testaudiohotplug. --- test/testaudiohotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/testaudiohotplug.c b/test/testaudiohotplug.c index 08bfa74de..6c3d88cd1 100644 --- a/test/testaudiohotplug.c +++ b/test/testaudiohotplug.c @@ -131,7 +131,8 @@ main(int argc, char *argv[]) return (1); } - SDL_CreateWindow("testaudiohotplug", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, 0); + /* Some targets (Mac CoreAudio) need an event queue for audio hotplug, so make and immediately hide a window. */ + SDL_MinimizeWindow(SDL_CreateWindow("testaudiohotplug", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, 0)); if (argc > 1) { SDL_strlcpy(filename, argv[1], sizeof(filename));