Hide drm cursor when exiting
Change-Id: Ib4e1895dcf3e0168eb759fbecee499d75dd45bfe Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>bb10
parent
fb7b18c703
commit
a46072395c
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ class QKmsCursor : public QPlatformCursor
|
|||
{
|
||||
public:
|
||||
QKmsCursor(QKmsScreen *screen);
|
||||
~QKmsCursor();
|
||||
|
||||
void pointerEvent(const QMouseEvent &event);
|
||||
void changeCursor(QCursor *widgetCursor, QWindow *window);
|
||||
|
|
|
|||
Loading…
Reference in New Issue