Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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