mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #252 from MuriloMir/patch-2
Moving those 2 functions here
This commit is contained in:
commit
2a7a85e351
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue