summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2022-01-03 13:28:11 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-01-04 06:31:59 +0000
commit857c8850f3127718dbe349bdc8bb7aed6f16ace4 (patch)
tree54286ccf8f71556681508a21b076c81882d67373 /Userland/Services
parent69c757e92fd164c053ff4ed0e7ad75d8ecf71773 (diff)
downloadserenity-857c8850f3127718dbe349bdc8bb7aed6f16ace4.zip
WindowServer: Fix loading MainScreen setting from configuration
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WindowServer/ScreenLayout.ipp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WindowServer/ScreenLayout.ipp b/Userland/Services/WindowServer/ScreenLayout.ipp
index ff1c8b7db6..e48870e960 100644
--- a/Userland/Services/WindowServer/ScreenLayout.ipp
+++ b/Userland/Services/WindowServer/ScreenLayout.ipp
@@ -230,7 +230,7 @@ bool ScreenLayout::normalize()
bool ScreenLayout::load_config(const Core::ConfigFile& config_file, String* error_msg)
{
screens.clear_with_capacity();
- main_screen_index = config_file.read_num_entry("Screens", "DefaultScreen", 0);
+ main_screen_index = config_file.read_num_entry("Screens", "MainScreen", 0);
for (size_t index = 0;; index++) {
auto group_name = String::formatted("Screen{}", index);
if (!config_file.has_group(group_name))
@@ -249,7 +249,7 @@ bool ScreenLayout::load_config(const Core::ConfigFile& config_file, String* erro
bool ScreenLayout::save_config(Core::ConfigFile& config_file, bool sync) const
{
- config_file.write_num_entry("Screens", "DefaultScreen", main_screen_index);
+ config_file.write_num_entry("Screens", "MainScreen", main_screen_index);
size_t index = 0;
while (index < screens.size()) {