Center initial pointer position on screen in libinput mode
This commit is contained in:
parent
2a6cd5010a
commit
ff87c989ba
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue