Merge pull request #252 from MuriloMir/patch-2

Moving those 2 functions here
This commit is contained in:
Adam D. Ruppe 2020-05-17 09:24:34 -04:00 committed by GitHub
commit 2a7a85e351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -14761,3 +14761,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);
}
}