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
This commit is contained in:
Xaver Hugl 2023-11-21 17:45:05 +01:00 committed by Vlad Zahorodnii
parent 2ff0fc26a4
commit 008e5e5a10

View file

@ -1299,7 +1299,7 @@ void Workspace::updateOutputs(const QList<Output *> &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<PlaceholderInputEventFilter>();
input()->prependInputEventFilter(m_placeholderFilter.get());
}