backends/drm: fix cursor crash
This commit is contained in:
parent
1d6de6a3a9
commit
5e75d2a095
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ static bool isCursorSpriteCompatible(const QImage *buffer, const QImage *sprite)
|
|||
|
||||
void DrmOutput::updateCursor()
|
||||
{
|
||||
if (!isEnabled() || !m_connector->isConnected()) {
|
||||
if (!m_pipeline->pending.crtc) {
|
||||
return;
|
||||
}
|
||||
const Cursor *cursor = Cursors::self()->currentCursor();
|
||||
|
@ -155,7 +155,7 @@ void DrmOutput::updateCursor()
|
|||
|
||||
void DrmOutput::moveCursor()
|
||||
{
|
||||
if (!m_setCursorSuccessful) {
|
||||
if (!m_setCursorSuccessful || !m_pipeline->pending.crtc) {
|
||||
return;
|
||||
}
|
||||
Cursor *cursor = Cursors::self()->currentCursor();
|
||||
|
|
Loading…
Reference in a new issue