mirror of https://github.com/mpv-player/mpv
Toggle only between ontop and normal.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15525 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f912acba6d
commit
7e0a27e93b
|
@ -1234,26 +1234,7 @@ void window_ontop()
|
|||
//Cycle between level
|
||||
winLevel++;
|
||||
if(winLevel>2)
|
||||
winLevel = 0;
|
||||
|
||||
//hide menu bar and mouse cursor if in fullscreen and quiting wallpaper mode
|
||||
if(vo_fs)
|
||||
{
|
||||
if(winLevel != 0)
|
||||
{
|
||||
if(device_id == 0)
|
||||
{
|
||||
HideMenuBar();
|
||||
HideCursor();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowMenuBar();
|
||||
ShowCursor();
|
||||
}
|
||||
}
|
||||
|
||||
winLevel = 1;
|
||||
}
|
||||
SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel]));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue