Browse Source

Merge pull request #88643 from YeldhamDev/too_bad

Revert "Fix `NOTIFICATION_WM_SIZE_CHANGED` firing if the size hasn't changed"
Rémi Verschelde 1 year ago
parent
commit
5ce436f624
2 changed files with 1 additions and 5 deletions
  1. 1 4
      scene/main/window.cpp
  2. 0 1
      scene/main/window.h

+ 1 - 4
scene/main/window.cpp

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

+ 0 - 1
scene/main/window.h

@@ -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] = {};