We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6be909 + 4877a96 commit 07ee133Copy full SHA for 07ee133
scene/main/window.cpp
@@ -1366,7 +1366,13 @@ void Window::set_force_native(bool p_force_native) {
1366
if (is_visible() && !is_in_edited_scene_root()) {
1367
ERR_FAIL_MSG("Can't change \"force_native\" while a window is displayed. Consider hiding window before changing this value.");
1368
}
1369
+ if (window_id == DisplayServer::MAIN_WINDOW_ID) {
1370
+ return;
1371
+ }
1372
force_native = p_force_native;
1373
+ if (!is_in_edited_scene_root() && get_tree()->get_root()->is_embedding_subwindows()) {
1374
+ set_embedding_subwindows(force_native);
1375
1376
1377
1378
bool Window::get_force_native() const {
0 commit comments