From 660407c9b23a204e84f3a4874e6d173b47efa228 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 20 Apr 2021 14:14:54 -0300 Subject: [PATCH] Switch multiple displays flag in runtime Already created ui::Window are not modified and closed/reopened. --- src/app/commands/cmd_options.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/commands/cmd_options.cpp b/src/app/commands/cmd_options.cpp index c1d2f6408..bfab99549 100644 --- a/src/app/commands/cmd_options.cpp +++ b/src/app/commands/cmd_options.cpp @@ -778,6 +778,10 @@ public: warnings)); } + // Probably it's safe to switch this flag in runtime + if (m_pref.experimental.multipleWindows() != ui::get_multiple_displays()) + ui::set_multiple_displays(m_pref.experimental.multipleWindows()); + if (reset_screen) updateScreenScaling(); }