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:
parent
2ff0fc26a4
commit
008e5e5a10
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue