Allow embedded windows to be non-resizable

This fixes issue #56869.
This commit is contained in:
Mario Liebisch 2022-01-17 21:17:53 +01:00
parent 4cfade6212
commit a5a03b3a73
No known key found for this signature in database
GPG Key ID: 32B56AC1F87EFBF9

View File

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