Center initial pointer position on screen in libinput mode

This commit is contained in:
Martin Gräßlin 2014-10-17 11:57:14 +02:00
parent 2a6cd5010a
commit ff87c989ba

View file

@ -226,6 +226,11 @@ void InputRedirection::setupLibInput()
processPointerMotion(screen, time); processPointerMotion(screen, time);
} }
); );
// set pos to center of all screens
if (screens()) {
m_globalPointer = screens()->geometry().center();
emit globalPointerChanged(m_globalPointer);
}
} }
#endif #endif
} }