summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.cpp')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
index b29981f5bf..007829b682 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
@@ -72,7 +72,7 @@ public:
QEglFSWindow *window = static_cast<QEglFSWindow *>(surface);
QEglFSScreen *screen = static_cast<QEglFSScreen *>(window->screen());
if (QEglFSCursor *cursor = static_cast<QEglFSCursor *>(screen->cursor()))
- cursor->render();
+ cursor->paintOnScreen();
QEGLPlatformContext::swapBuffers(surface);
}
@@ -124,8 +124,12 @@ QEglFSScreen::QEglFSScreen()
eglSwapInterval(m_dpy, swapInterval);
static int hideCursor = qgetenv("QT_QPA_EGLFS_HIDECURSOR").toInt();
- if (!hideCursor)
- m_cursor = new QEglFSCursor(this);
+ if (!hideCursor) {
+ if (QEglFSCursor *customCursor = hooks->createCursor(this))
+ m_cursor = customCursor;
+ else
+ m_cursor = new QEglFSCursor(this);
+ }
}
QEglFSScreen::~QEglFSScreen()