Hide drm cursor when exiting

Change-Id: Ib4e1895dcf3e0168eb759fbecee499d75dd45bfe
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Laszlo Agocs 2012-07-18 13:03:27 +03:00 committed by Qt by Nokia
parent fb7b18c703
commit a46072395c
2 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,12 @@ QKmsCursor::QKmsCursor(QKmsScreen *screen)
m_cursorImage = new QPlatformCursorImage(0, 0, 0, 0, 0, 0);
}
QKmsCursor::~QKmsCursor()
{
drmModeSetCursor(m_screen->device()->fd(), m_screen->crtcId(),
0, 0, 0);
}
void QKmsCursor::pointerEvent(const QMouseEvent &event)
{
int status = drmModeMoveCursor(m_screen->device()->fd(),

View File

@ -58,6 +58,7 @@ class QKmsCursor : public QPlatformCursor
{
public:
QKmsCursor(QKmsScreen *screen);
~QKmsCursor();
void pointerEvent(const QMouseEvent &event);
void changeCursor(QCursor *widgetCursor, QWindow *window);