From: Mikko Rasa Date: Wed, 22 Jan 2014 19:52:21 +0000 (+0200) Subject: Only set resizing flag to true in Window::reconfigure X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=commitdiff_plain;h=e5dd55567618c0a0789d25882d2e0eab69437d63 Only set resizing flag to true in Window::reconfigure This ensures that multiple consecutive reconfigure calls with the same size won't reset the flag to false and prevent resize signal emission. --- diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index 8c9d174..658eb26 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -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) {