Need DBus API to get current co-ordinates of the Pointer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity8 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The autopilot tool(using evdev) moves the mouse cursor on screen relative to its current position. This works fine in X11 as there are ways to easily get the co-ordinates of the cursor, but under Mir that does not work as we have no way to get the pointer' co-ordinates.
We need this API to port autopilot to work under Mir based desktop.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: unity8 8.14+16.
Uname: Linux 4.7.0-040700-
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity:Unity7
Date: Tue Oct 4 22:42:50 2016
InstallationDate: Installed on 2016-09-21 (12 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Alpha amd64 (20160921)
JournalErrors:
Error: command ['journalctl', '-b', '--priority=
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
SourcePackage: unity8
UpgradeStatus: No upgrade log present (probably fresh install)
I am attaching a sample code that works under X, to get that to work under Mir, we only need to get cursor co-ordinates from unity8, then we only need to update get_cursor_ position( ) method.
it requires python-evdev, python3-autopilot and python3-xlib installed.