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:
parent
d03e352dbf
commit
b0b551653f
2 changed files with 5 additions and 2 deletions
|
@ -811,6 +811,9 @@ void DrmGpu::recreateSurfaces()
|
|||
virtualOutput->recreateSurface();
|
||||
}
|
||||
}
|
||||
for (const auto &output : qAsConst(m_drmOutputs)) {
|
||||
output->updateCursor();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue