From d9e615c040f4cb679536312333ba363382467948 Mon Sep 17 00:00:00 2001 From: "U-SLAVA-DFB8FF805\\Slava" Date: Tue, 6 May 2008 09:16:48 -0500 Subject: [PATCH] More fixes --- extra/io/launcher/launcher.factor | 6 ++++++ extra/ui/ui.factor | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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