awaken-event-loop does nothing if dpy-fd not set; move x11.unix to x11.io.unix
parent
5579842d7a
commit
427710427c
|
@ -2,8 +2,8 @@
|
|||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: io.backend.unix io.backend.unix.multiplexers
|
||||
namespaces system x11 x11.xlib x11.io
|
||||
accessors threads sequences ;
|
||||
IN: x11.unix
|
||||
accessors threads sequences kernel ;
|
||||
IN: x11.io.unix
|
||||
|
||||
SYMBOL: dpy-fd
|
||||
|
||||
|
@ -12,4 +12,4 @@ M: unix init-x-io dpy get XConnectionNumber <fd> dpy-fd set-global ;
|
|||
M: unix wait-for-display dpy-fd get +input+ wait-for-fd ;
|
||||
|
||||
M: unix awaken-event-loop
|
||||
dpy-fd get fd>> mx get remove-input-callbacks [ resume ] each ;
|
||||
dpy-fd get [ fd>> mx get remove-input-callbacks [ resume ] each ] when* ;
|
|
@ -33,4 +33,4 @@ SYMBOL: root
|
|||
: with-x ( display-string quot -- )
|
||||
[ init-x ] dip [ close-x ] [ ] cleanup ; inline
|
||||
|
||||
"io.backend.unix" vocab [ "x11.unix" require ] when
|
||||
"io.backend.unix" vocab [ "x11.io.unix" require ] when
|
Loading…
Reference in New Issue