eglfs: Fix hardware cursor with kms

We have to set a default arrow cursor on startup because non-widget
apps will not request one. This is how we behave with non-kms backends
too.

Change-Id: I11b7bf96e46f570bc49f3e8701616b13c480fda6
Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-01-13 17:26:04 +01:00
parent 99d81c5f18
commit 43807479bc

View File

@ -447,7 +447,11 @@ QEglFSKmsCursor::QEglFSKmsCursor(QEglFSKmsScreen *screen)
initCursorAtlas();
}
drmModeMoveCursor(m_screen->device()->fd(), m_screen->output().crtc_id, 0, 0);
#ifndef QT_NO_CURSOR
QCursor cursor(Qt::ArrowCursor);
changeCursor(&cursor, 0);
#endif
setPos(QPoint(0, 0));
}
QEglFSKmsCursor::~QEglFSKmsCursor()