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
This commit is contained in:
Xaver Hugl 2022-12-26 14:28:27 +01:00
parent b9612ca0b7
commit 40ca578bd0

View file

@ -1550,7 +1550,7 @@ void Workspace::updateOutputs(const QVector<Output *> &outputOrder)
// The workspace requires at least one output connected. // The workspace requires at least one output connected.
if (m_outputs.isEmpty()) { if (m_outputs.isEmpty()) {
if (!m_placeholderOutput) { if (!m_placeholderOutput) {
m_placeholderOutput = new PlaceholderOutput(QSize(16535, 16535), 1); m_placeholderOutput = new PlaceholderOutput(QSize(8192, 8192), 1);
m_placeholderFilter = std::make_unique<PlaceholderInputEventFilter>(); m_placeholderFilter = std::make_unique<PlaceholderInputEventFilter>();
input()->prependInputEventFilter(m_placeholderFilter.get()); input()->prependInputEventFilter(m_placeholderFilter.get());
} }