From 008e5e5a108e310c352ff5ba9003dab15130077f Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 21 Nov 2023 17:45:05 +0100 Subject: [PATCH] workspace: reduce placeholder output size Maximized windows get resized to this when the last output gets removed, which can increase VRAM load unnecessarily. As the placement tracker resizes windows back to their original size, we can reduce the size of the placeholder output without causing additional issues --- src/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index acd377d331..db37ade6ee 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -1299,7 +1299,7 @@ void Workspace::updateOutputs(const QList &outputOrder) // The workspace requires at least one output connected. if (m_outputs.isEmpty()) { if (!m_placeholderOutput) { - m_placeholderOutput = new PlaceholderOutput(QSize(8192, 8192), 1); + m_placeholderOutput = new PlaceholderOutput(QSize(1920, 1080), 1); m_placeholderFilter = std::make_unique(); input()->prependInputEventFilter(m_placeholderFilter.get()); }