diff --git a/src/SciMoz/nsSciMozCocoa.mm b/src/SciMoz/nsSciMozCocoa.mm index 4dcc6b845d..df1d6a7a58 100644 --- a/src/SciMoz/nsSciMozCocoa.mm +++ b/src/SciMoz/nsSciMozCocoa.mm @@ -532,8 +532,11 @@ static bool hasEmptyRect(NPCocoaEvent *event) { #endif return kNPEventNotHandled; } -#ifdef SCIMOZ_COCOA_DEBUG + NPCocoaEvent *event = (NPCocoaEvent *) ev; + if (event->type == NPCocoaEventWindowFocusChanged && event->data.focus.hasFocus) + [visibilityTimer startTimer]; // ensure view is visible after un-hide +#ifdef SCIMOZ_COCOA_DEBUG if (event->type != NPCocoaEventMouseMoved) fprintf(stderr, "PlatformHandleEvent: event #%d\n", event->type); #endif