diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-01-13 17:26:04 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-01-15 15:34:20 +0100 |
commit | 43807479bc5a39823e69b74a013e46d46e707441 (patch) | |
tree | a687fbdaf9af73d95fa153aa61c98e770df54705 /src/plugins/platforms/eglfs | |
parent | 99d81c5f187aae79e1f55d59db1d5711ea35f86a (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r-- | src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsintegration.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsintegration.cpp index 5a9d3db236..1d9eaab430 100644 --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsintegration.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsintegration.cpp @@ -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() |