From ca9f477ac356849471c3a3fbf9584f78aadd6027 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 12 Jan 2014 13:45:23 +0200 Subject: [PATCH 1/1] Only restore mode if the window is still visible --- source/graphics/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 00acbc4..8c9d174 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -51,7 +51,7 @@ Window::~Window() display.remove_window(*this); - if(options.fullscreen) + if(options.fullscreen && visible) display.restore_mode(); delete priv; -- 2.43.0