backends/drm: update cursor after compositing reset

Otherwise the cursor won't be shown, as its buffer and layer got destroyed

BUG: 453823
This commit is contained in:
Xaver Hugl 2022-05-18 11:08:16 +02:00
parent d03e352dbf
commit b0b551653f
2 changed files with 5 additions and 2 deletions

View file

@ -811,6 +811,9 @@ void DrmGpu::recreateSurfaces()
virtualOutput->recreateSurface();
}
}
for (const auto &output : qAsConst(m_drmOutputs)) {
output->updateCursor();
}
}
}

View file

@ -50,6 +50,8 @@ public:
void updateModes();
bool usesSoftwareCursor() const override;
void updateCursor();
void moveCursor();
void setColorTransformation(const QSharedPointer<ColorTransformation> &transformation) override;
@ -60,8 +62,6 @@ private:
QList<QSharedPointer<OutputMode>> getModes() const;
void updateCursor();
void moveCursor();
void renderCursorOpengl(const QSize &cursorSize);
void renderCursorQPainter();