From: Mikko Rasa Date: Sun, 12 Jan 2014 11:45:23 +0000 (+0200) Subject: Only restore mode if the window is still visible X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ca9f477ac356849471c3a3fbf9584f78aadd6027;p=libs%2Fgui.git Only restore mode if the window is still visible --- 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;