diff options
author | Mario Liebisch <mario.liebisch@gmail.com> | 2022-01-17 21:17:53 +0100 |
---|---|---|
committer | Mario Liebisch <mario.liebisch@gmail.com> | 2022-01-17 21:19:45 +0100 |
commit | a5a03b3a73e4d466555e564f31b2a64e3058af72 (patch) | |
tree | 61fda97d51b63eb92823da14adc0d87da09e7d8e /scene/main | |
parent | 4cfade6212be18f0b1a215dc088a9f1d6ac9b395 (diff) |
Allow embedded windows to be non-resizable
This fixes issue #56869.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 4ad250ff54..2cdafefba7 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2348,7 +2348,7 @@ void Viewport::push_text_input(const String &p_text) { } Viewport::SubWindowResize Viewport::_sub_window_get_resize_margin(Window *p_subwindow, const Point2 &p_point) { - if (p_subwindow->get_flag(Window::FLAG_BORDERLESS)) { + if (p_subwindow->get_flag(Window::FLAG_BORDERLESS) || p_subwindow->get_flag(Window::FLAG_RESIZE_DISABLED)) { return SUB_WINDOW_RESIZE_DISABLED; } |