From 40ca578bd0cee5797ee77a5b469eca2ec82e15aa Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 26 Dec 2022 14:28:27 +0100 Subject: [PATCH] workspace: don't make the placeholder output too big The size is used in NETRootInfo::setDesktopGeometry, which seems to cause some applications to misbehave or even crash because they attempt to create a texture larger than what the GPU supports CCBUG: 461848 --- src/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index b3137877f6..69a90bb895 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -1550,7 +1550,7 @@ void Workspace::updateOutputs(const QVector &outputOrder) // The workspace requires at least one output connected. if (m_outputs.isEmpty()) { if (!m_placeholderOutput) { - m_placeholderOutput = new PlaceholderOutput(QSize(16535, 16535), 1); + m_placeholderOutput = new PlaceholderOutput(QSize(8192, 8192), 1); m_placeholderFilter = std::make_unique(); input()->prependInputEventFilter(m_placeholderFilter.get()); }