From 017b4019b658c240bd4df5d8a97a068722ae8194 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 21 Nov 2023 18:38:05 +0100 Subject: [PATCH] outputconfigurationstore: don't generate configs that disable all outputs --- src/outputconfigurationstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outputconfigurationstore.cpp b/src/outputconfigurationstore.cpp index b1950d3b47..217f1cce09 100644 --- a/src/outputconfigurationstore.cpp +++ b/src/outputconfigurationstore.cpp @@ -379,7 +379,7 @@ std::pair> OutputConfigurationStore::genera QPoint pos(0, 0); for (const auto output : outputs) { const auto outputIndex = findOutput(output, outputs); - const bool enable = !isLidClosed || !output->isInternal(); + const bool enable = !isLidClosed || !output->isInternal() || outputs.size() == 1; const OutputState existingData = outputIndex ? m_outputs[*outputIndex] : OutputState{}; const auto modes = output->modes();