Commit 8bb5b274 authored by Méven Car's avatar Méven Car Committed by Méven Car
Browse files

VirtualBackend: make sure the initial dummy VirtualOutput is enabled

Fix tests regressions introduced in 39a1e11958b1ad47d9a516c1cb4bcea852e92a00
parent 7ba1937f
......@@ -57,10 +57,11 @@ void VirtualBackend::init()
* TODO: rewrite all tests to explicitly set the outputs.
if (!m_outputs.size()) {
if (m_outputs.isEmpty()) {
VirtualOutput *dummyOutput = new VirtualOutput(this);
dummyOutput->init(QPoint(0, 0), initialWindowSize());
m_outputs << dummyOutput ;
m_outputsEnabled << dummyOutput;
emit outputAdded(dummyOutput);
emit outputEnabled(dummyOutput);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment