X button disable

It could be useful for the X button to be set disable or enable in window mode.
Cuz sometimes, you need to save things when the user closes the game, but it doesn't save anything whit the window X.
Cuz sometimes, you need to save things when the user closes the game, but it doesn't save anything whit the window X.