Moving those 2 functions here

I've just moved those 2 functions to simpledisplay.
This commit is contained in:
Murilo Miranda 2020-05-11 22:37:09 -03:00 committed by GitHub
parent a450ca7e4c
commit a43dad25de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -14760,3 +14760,18 @@ class NotYetImplementedException : Exception {
}
private alias scriptable = arsd_jsvar_compatible;
version (linux)
{
void moveArrowBy(int x, int y)
{
XWarpPointer(XDisplayConnection.get(), None, None, 0, 0, 0, 0, x, y);
XFlush(XDisplayConnection.get());
}
void moveArrowTo(int x, int y)
{
moveArrowBy(-10000, -10000);
moveArrowBy(0, 0);
}
}