Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDL 2.0 Quit Event with Multiple Windows

I'm using SDL 2.0, and decided to try out making multiple windows. Unfortunately, now I can't quit out of my program without going back to the IDE and force closing it.

The event handling is as simple as possible, I am only polling for the quit event, and it worked perfectly fine before I added the second window. Is the Quit Event ignored when using multiple windows? If so, how can I turn it back on?

like image 272
Sethbeastalan Avatar asked Jul 09 '13 06:07

Sethbeastalan


1 Answers

The Quit Event is only sent when the last open window is trying to close, otherwise a window close event is sent.

like image 200
h4tch Avatar answered Sep 23 '22 00:09

h4tch