mirror of https://github.com/adamdruppe/arsd.git
Moving those 2 functions here
I've just moved those 2 functions to simpledisplay.
This commit is contained in:
parent
a450ca7e4c
commit
a43dad25de
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue