The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2: SDL_Delay() makes the window bar hidden on El Capitan
rrohrer


Joined: 07 Aug 2016
Posts: 2
Location: Seattle, WA, USA
Hey, I don't know if you figured this out (it's been a while since this post was made), but the issue is that the message pump isn't getting drained. Previous versions of SDL2 / OS X seemed to handle this differently. Code: // replace this: SDL_Delay(1000); // with this: for (int i = 0; i < 1000; ++i) { SDL_PumpEvents(); SDL_Delay(1); }
I know it's a lame work around, but it fixes the issue of the white / hidden window bar.