[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/D1806icc-effect-5.14.5
parent
04c3998571
commit
935f8875fe
|
@ -498,7 +498,7 @@ void DrmBackend::initCursor()
|
||||||
m_cursor[0]->image()->fill(Qt::transparent);
|
m_cursor[0]->image()->fill(Qt::transparent);
|
||||||
m_cursor[1] = createBuffer(cursorSize);
|
m_cursor[1] = createBuffer(cursorSize);
|
||||||
m_cursor[1]->map(QImage::Format_ARGB32_Premultiplied);
|
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
|
// now we have screens and can set cursors, so start tracking
|
||||||
connect(this, &DrmBackend::cursorChanged, this, &DrmBackend::updateCursor);
|
connect(this, &DrmBackend::cursorChanged, this, &DrmBackend::updateCursor);
|
||||||
connect(Cursor::self(), &Cursor::posChanged, this, &DrmBackend::moveCursor);
|
connect(Cursor::self(), &Cursor::posChanged, this, &DrmBackend::moveCursor);
|
||||||
|
|
Loading…
Reference in New Issue