]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.cpp
Only set resizing flag to true in Window::reconfigure
[libs/gui.git] / source / graphics / window.cpp
index 00acbc459446a6d410d12d876f4bb7662f4265f0..658eb26f5aab722c2b1515a4c64c4f6f9334ec73 100644 (file)
@@ -51,7 +51,7 @@ Window::~Window()
 
        display.remove_window(*this);
 
-       if(options.fullscreen)
+       if(options.fullscreen && visible)
                display.restore_mode();
 
        delete priv;
@@ -60,7 +60,8 @@ Window::~Window()
 void Window::reconfigure(const WindowOptions &opts)
 {
        bool fullscreen_changed = (opts.fullscreen!=options.fullscreen);
-       resizing = (opts.width!=options.width || opts.height!=options.height);
+       if(opts.width!=options.width || opts.height!=options.height)
+               resizing = true;
 
        if(visible)
        {