[drm] correctly initialize the second cursor

Summary: There were a trivial copy'n paste error.

Reviewers: graesslin

Reviewed By: graesslin

Subscribers: graesslin, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D1806
icc-effect-5.14.5
David Fort 2016-06-09 16:59:27 +02:00 committed by Martin Gräßlin
parent 04c3998571
commit 935f8875fe
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ void DrmBackend::initCursor()
m_cursor[0]->image()->fill(Qt::transparent);
m_cursor[1] = createBuffer(cursorSize);
m_cursor[1]->map(QImage::Format_ARGB32_Premultiplied);
m_cursor[0]->image()->fill(Qt::transparent);
m_cursor[1]->image()->fill(Qt::transparent);
// now we have screens and can set cursors, so start tracking
connect(this, &DrmBackend::cursorChanged, this, &DrmBackend::updateCursor);
connect(Cursor::self(), &Cursor::posChanged, this, &DrmBackend::moveCursor);