diff options
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r-- | scene/main/window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index eb431445ed..a6cb5f4526 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -1160,7 +1160,10 @@ void Window::_update_viewport_size() { } } - notification(NOTIFICATION_WM_SIZE_CHANGED); + if (old_size != size) { + old_size = size; + notification(NOTIFICATION_WM_SIZE_CHANGED); + } if (embedder) { embedder->_sub_window_update(this); |