diff --git a/extra/io/launcher/launcher.factor b/extra/io/launcher/launcher.factor index 286febd589..a47e2d3367 100755 --- a/extra/io/launcher/launcher.factor +++ b/extra/io/launcher/launcher.factor @@ -225,3 +225,9 @@ M: duplex-stream underlying-handle [ in>> underlying-handle ] [ out>> underlying-handle ] bi [ = [ "Invalid duplex stream" throw ] when ] keep ; + +M: encoder underlying-handle + stream>> underlying-handle ; + +M: decoder underlying-handle + stream>> underlying-handle ; diff --git a/extra/ui/ui.factor b/extra/ui/ui.factor index 12565235ab..e7f412630c 100755 --- a/extra/ui/ui.factor +++ b/extra/ui/ui.factor @@ -29,8 +29,9 @@ SYMBOL: windows windows global [ [ first = not ] with filter ] change-at ; : raised-window ( world -- ) - windows get-global [ second eq? ] with find drop - windows get-global [ length 1- ] keep exchange ; + windows get-global + [ [ second eq? ] with find drop ] keep + [ nth ] [ delete-nth ] [ nip ] 2tri push ; : focus-gestures ( new old -- ) drop-prefix