]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/ui.factor
use reject instead of [ ... not ] filter.
[factor.git] / basis / ui / ui.factor
index 5eafa48c87b808aec71d80819535217b5d6e62c0..e1c8882cdd9080545e5170ed904dcc6130e88ac0 100644 (file)
@@ -29,7 +29,7 @@ SYMBOL: windows
     [ [ length 1 - dup 1 - ] keep exchange ] [ drop ] if ;
 
 : unregister-window ( handle -- )
-    windows [ [ first = not ] with filter ] change-global ;
+    windows [ [ first = ] with reject ] change-global ;
 
 : raised-window ( world -- )
     windows get-global