diff options
author | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-02 01:48:37 +0000 |
---|---|---|
committer | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-02 01:48:37 +0000 |
commit | 85915a0b581aa2e33c27474dbb53a01be499e2dc (patch) | |
tree | d62fae39d77d40a59beb37409dce39aa33ed5493 /libvo | |
parent | 76f81fba8c22faa9e9aeb9204b2f24f56c63c802 (diff) |
add ontop
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15321 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-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; + } } /* |