Skip to content

Commit

Permalink
Merge pull request godotengine#88643 from YeldhamDev/too_bad
Browse files Browse the repository at this point in the history
Revert "Fix `NOTIFICATION_WM_SIZE_CHANGED` firing if the size hasn't changed"
  • Loading branch information
akien-mga committed Feb 22, 2024
2 parents b82bd22 + 584a6ae commit 5ce436f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions scene/main/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion scene/main/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class Window : public Viewport {
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] = {};
Expand Down

0 comments on commit 5ce436f

Please sign in to comment.