KMS platform plugin: Introduce default cursor for better usability.
Similar to the default cursor in eglfs, not having it makes it hard to interact with Qt applications using the evdevmouse plugin. Change-Id: I9638267c7d790d91b66620e4a82d86f299061922 Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
This commit is contained in:
parent
e18569ee1d
commit
4f539b2671
@ -211,6 +211,14 @@ void QKmsScreen::performPageFlip()
|
||||
if (ret)
|
||||
qFatal("failed to set mode");
|
||||
m_modeSet = true;
|
||||
|
||||
// Initialize cursor
|
||||
|
||||
static int hideCursor = qgetenv("QT_QPA_KMS_HIDECURSOR").toInt();
|
||||
if (!hideCursor) {
|
||||
QCursor cursor(Qt::ArrowCursor);
|
||||
m_cursor->changeCursor(&cursor, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int pageFlipStatus = drmModePageFlip(m_device->fd(), m_crtcId,
|
||||
|
Loading…
Reference in New Issue
Block a user