[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
remotes/origin/Plasma/5.7
David Fort 10 years ago committed by Martin Gräßlin
parent 04c3998571
commit 935f8875fe
  1. 2
      plugins/platforms/drm/drm_backend.cpp

@ -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);

Loading…
Cancel
Save