Merge pull request #22737 from fwcd:activate-cocoa-window-on-top

Cocoa/highgui: Set `[NSApp activateIgnoringOtherApps]` to spawn window on top
pull/22855/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 529bd0425e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/highgui/src/window_cocoa.mm

@ -587,6 +587,8 @@ CV_IMPL int cvNamedWindow( const char* name, int flags )
[window setContentView:[[CVView alloc] init]];
[NSApp activateIgnoringOtherApps:YES];
[window setHasShadow:YES];
[window setAcceptsMouseMovedEvents:YES];
[window useOptimizedDrawing:YES];

Loading…
Cancel
Save