From 85915a0b581aa2e33c27474dbb53a01be499e2dc Mon Sep 17 00:00:00 2001 From: nplourde Date: Mon, 2 May 2005 01:48:37 +0000 Subject: add ontop git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15321 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libvo') 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; + } } /* -- cgit v1.2.3