diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-21 03:54:45 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-21 03:55:04 +0200 |
commit | c9c5eec6f9cf5c756608dd2773a72992fa0766fb (patch) | |
tree | d52a52f2f46ad458e8fff161225639bc77f2db2d | |
parent | e248d2629ab9cb1dcfa91af5202af4f17754e44f (diff) |
Enable single-window mode by default in projects
There are many issues with using multiple windows by default:
- Taking screenshots of a specific window will not capture subwindows.
This also applies when recording a video using tools such as OBS.
- Subwindows may not behave correctly when fullscreen mode is enabled,
especially if exclusive fullscreen is implemented in the future
to decrease input lag on Windows.
"Subwindows" is quite general here, and also refers to dropdown menus
(e.g. those spawned by OptionButton) and Control tooltips.
Therefore, it's safer to embed subwindows by default in projects.
Multi-window mode remains the default in the editor.
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1e5445fd93..0f83b0625c 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2105,7 +2105,7 @@ bool Main::start() { } #endif - bool embed_subwindows = GLOBAL_DEF("display/window/subwindows/embed_subwindows", false); + bool embed_subwindows = GLOBAL_DEF("display/window/subwindows/embed_subwindows", true); if (single_window || (!project_manager && !editor && embed_subwindows)) { sml->get_root()->set_embed_subwindows_hint(true); |