You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user