USING: kernel alien compiler namespaces generic math sequences hashtables io
arrays words prettyprint lists concurrency
-process rectangle xlib x concurrent-widgets ;
+process rectangle x11 x concurrent-widgets ;
IN: factory
! M: wm-root handle-button-press-event
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+: XButtonEvent-position ( event -- { x y } )
+ dup XButtonEvent-x swap XButtonEvent-y 2array ;
+
+: XButtonEvent-root-position ( event -- { x y } )
+ dup XButtonEvent-x_root swap XButtonEvent-y_root 2array ;
+
M: wm-root handle-button-press-event ( event wm-root -- )
drop ! event
! M: wm-root handle-key-press-event
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+: True 1 ;
+: False 0 ;
+
SYMBOL: f1-keycode 67 f1-keycode set-global
SYMBOL: f2-keycode 68 f2-keycode set-global
SYMBOL: f3-keycode 69 f3-keycode set-global