From e5dd55567618c0a0789d25882d2e0eab69437d63 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 22 Jan 2014 21:52:21 +0200 Subject: [PATCH] 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. --- source/graphics/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.43.0