1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Merge pull request #84151 from YeldhamDev/that_was_not_a_resize_you_dunce

Fix `NOTIFICATION_WM_SIZE_CHANGED` firing if the size hasn't changed
This commit is contained in:
Rémi Verschelde
2024-01-02 15:08:46 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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);