{ fullscreen? set-fullscreen } related-words
HELP: find-window
-{ $values { "quot" { $quotation ( world -- ? ) } } { "world" { $maybe world } } }
+{ $values { "quot" { $quotation ( world -- ? ) } } { "world/f" { $maybe world } } }
{ $description "Finds a native window such that the gadget passed to " { $link open-window } " satisfies the quotation, outputting " { $link f } " if no such gadget could be found. The front-most native window is checked first." } ;
HELP: register-window
PRIVATE>
-: find-window ( quot: ( world -- ? ) -- world )
+: find-window ( quot: ( world -- ? ) -- world/f )
[ ui-windows get-global values ] dip
'[ dup children>> [ ] [ nip first ] if-empty @ ]
find-last nip ; inline