diff options
Diffstat (limited to 'libvo/vo_macosx.m')
-rw-r--r-- | libvo/vo_macosx.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 460c59e739..dc669c510c 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -49,6 +49,7 @@ extern int vo_rootwin; extern int vo_ontop; extern int vo_fs; static int isFullscreen; +static int isOntop; extern float monitor_aspect; extern int vo_keepaspect; extern float movie_aspect; @@ -513,6 +514,16 @@ static uint32_t control(uint32_t request, void *data, ...) */ - (void) ontop { + if(vo_ontop) + { + [window setLevel:NSScreenSaverWindowLevel]; + isOntop = YES; + } + else + { + [window setLevel:NSNormalWindowLevel]; + isOntop = NO; + } } /* |