Merge pull request #88643 from YeldhamDev/too_bad

Revert "Fix `NOTIFICATION_WM_SIZE_CHANGED` firing if the size hasn't changed"
This commit is contained in:
Rémi Verschelde 2024-02-22 11:23:37 +01:00
commit 5ce436f624
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 1 additions and 5 deletions

View File

@ -1193,10 +1193,7 @@ void Window::_update_viewport_size() {
}
}
if (old_size != size) {
old_size = size;
notification(NOTIFICATION_WM_SIZE_CHANGED);
}
notification(NOTIFICATION_WM_SIZE_CHANGED);
if (embedder) {
embedder->_sub_window_update(this);

View File

@ -116,7 +116,6 @@ private:
mutable Size2i size = Size2i(DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE);
mutable Size2i min_size;
mutable Size2i max_size;
mutable Size2i old_size = size;
mutable Vector<Vector2> mpath;
mutable Mode mode = MODE_WINDOWED;
mutable bool flags[FLAG_MAX] = {};