Change qpainter connect for initOutput to outputEnabled

This commit is contained in:
Xaver Hugl 2021-01-27 18:29:56 +01:00
parent 14ef991553
commit 90007b906b

View file

@ -25,7 +25,7 @@ DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend, DrmGpu *gpu)
for (auto output: outputs) {
initOutput(output);
}
connect(m_gpu, &DrmGpu::outputAdded, this, &DrmQPainterBackend::initOutput);
connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput);
connect(m_gpu, &DrmGpu::outputDisabled, this,
[this] (DrmOutput *o) {
auto it = std::find_if(m_outputs.begin(), m_outputs.end(),