Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Mouse-position/Standard-ML/mouse-position.ml
Normal file
9
Task/Mouse-position/Standard-ML/mouse-position.ml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
open XWindows ;
|
||||
val dp = XOpenDisplay "" ;
|
||||
val w = XCreateSimpleWindow (RootWindow dp) origin (Area {x=0,y=0,w=400,h=300}) 3 0 0xffffff ;
|
||||
XMapWindow w;
|
||||
val (focus,_)=( Posix.Process.sleep (Time.fromReal 2.0); (* time to move from interpreter + activate arbitrary window *)
|
||||
XGetInputFocus dp
|
||||
) ;
|
||||
XQueryPointer focus ;
|
||||
XQueryPointer w;
|
||||
Loading…
Add table
Add a link
Reference in a new issue