vlc_linux/vlc-3.0.16/modules/gui/qt/main_interface.cpp
/* Slot to change the video always-on-top flag.
 * Emit askVideoOnTop() to invoke this from other thread. */
Slot to change the video always-on-top flag.
Emit askVideoOnTop() to invoke this from other thread.
Slot to change the video always - on - top flag . Emit askVideoOnTop () to invoke this from other thread .
void MainInterface::setVideoOnTop( bool on_top )
{
    if ( b_interfaceOnTop )
        return;
    Qt::WindowFlags oldflags = windowFlags(), newflags;
    if( on_top )
        newflags = oldflags | Qt::WindowStaysOnTopHint;
    else
        newflags = oldflags & ~Qt::WindowStaysOnTopHint;
    if( newflags != oldflags && !b_videoFullScreen )
    {
        setWindowFlags( newflags );
        show(); 
    }
}
void MainInterface :: setVideoOnTop ( bool on_top ) { if ( b_interfaceOnTop ) return ; Qt :: WindowFlags oldflags = windowFlags ( ) , newflags ; if ( on_top ) newflags = oldflags | Qt :: WindowStaysOnTopHint ; else newflags = oldflags & ~ Qt :: WindowStaysOnTopHint ; if ( newflags != oldflags && ! b_videoFullScreen ) { setWindowFlags ( newflags ) ; show ( ) ; } }
Slot to change the video always-on-top flag.
Slot to change the video always - on - top flag .
//don't apply changes if user has already sets its interface on top /* necessary to apply window flags */