]> git.tdb.fi Git - libs/gui.git/commitdiff
Only restore mode if the window is still visible
authorMikko Rasa <tdb@tdb.fi>
Sun, 12 Jan 2014 11:45:23 +0000 (13:45 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 12 Jan 2014 11:45:23 +0000 (13:45 +0200)
source/graphics/window.cpp

index 00acbc459446a6d410d12d876f4bb7662f4265f0..8c9d1748a199648b3ae5b1e232c99066399c0882 100644 (file)
@@ -51,7 +51,7 @@ Window::~Window()
 
        display.remove_window(*this);
 
-       if(options.fullscreen)
+       if(options.fullscreen && visible)
                display.restore_mode();
 
        delete priv;