summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Liebisch <mario.liebisch@gmail.com>2022-01-17 21:17:53 +0100
committerMario Liebisch <mario.liebisch@gmail.com>2022-01-17 21:19:45 +0100
commita5a03b3a73e4d466555e564f31b2a64e3058af72 (patch)
tree61fda97d51b63eb92823da14adc0d87da09e7d8e
parent4cfade6212be18f0b1a215dc088a9f1d6ac9b395 (diff)
Allow embedded windows to be non-resizable
This fixes issue #56869.
-rw-r--r--scene/main/viewport.cpp2
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;
}