From eb4081c696414ecc6c62af43f9b2c5bd3879fd9f Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 27 Aug 2009 21:16:41 -0500 Subject: [PATCH] return YES from cocoa app delegate's applicationShouldHandleReopen: method. this allows app-icon-minimized windows on snow leopard to automatically restore when the dock icon is clicked --- basis/ui/backend/cocoa/tools/tools.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/ui/backend/cocoa/tools/tools.factor b/basis/ui/backend/cocoa/tools/tools.factor index cf5493f33d..b8c01f0bd9 100644 --- a/basis/ui/backend/cocoa/tools/tools.factor +++ b/basis/ui/backend/cocoa/tools/tools.factor @@ -30,7 +30,7 @@ CLASS: { } { "applicationShouldHandleReopen:hasVisibleWindows:" "int" { "id" "SEL" "id" "int" } - [ [ 3drop ] dip 0 = [ show-listener ] when 0 ] + [ [ 3drop ] dip 0 = [ show-listener ] when 1 ] } { "factorListener:" "id" { "id" "SEL" "id" }