mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +08:00
Merge pull request #22737 from fwcd:activate-cocoa-window-on-top
Cocoa/highgui: Set `[NSApp activateIgnoringOtherApps]` to spawn window on top
This commit is contained in:
commit
529bd0425e
@ -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…
Reference in New Issue
Block a user