Skip to content

Commit

Permalink
fix: OSX: Ensure view is visible after un-hide - fixes #564
Browse files Browse the repository at this point in the history
This may cause a flicker when switching between Komodo windows (not views).

rn=

(integrated from master branch change 9.2.1-522-ge7e0bd4 by Mitchell <mitchellb@activestate.com>)
  • Loading branch information
mitchell-as committed Oct 14, 2015
1 parent 80b7aae commit 8ca4aab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SciMoz/nsSciMozCocoa.mm
Expand Up @@ -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
Expand Down

0 comments on commit 8ca4aab

Please sign in to comment.