Normally, the window will go on top of the stack of normal windows
anyway. If not, we may need to force this, which is different from
always-on-top in any case.
Known issue: toggling video on top while in fullscreen is not
implemented yet.
videoSync();
}
-void VideoWidget::SetFullScreen( bool b_fs )
+void VideoWidget::SetFullScreen( bool b_fs, bool b_ontop )
{
const Qt::WindowStates curstate = reparentable->windowState();
Qt::WindowStates newstate = curstate;
if( b_fs )
{
newstate |= Qt::WindowFullScreen;
- newflags |= Qt::WindowStaysOnTopHint;
+ if( b_ontop )
+ newflags |= Qt::WindowStaysOnTopHint;
}
else
{
WId request( int *, int *, unsigned int *, unsigned int *, bool );
void release( void );
int control( void *, int, va_list );
+ void SetFullScreen( bool, bool );
protected:
virtual QPaintEngine *paintEngine() const
public slots:
void SetSizing( unsigned int, unsigned int );
- void SetFullScreen( bool );
};
/******************** Background Widget ****************/
b_videoFullScreen = fs;
/* refresh main interface on-top status if needed */
setVideoOnTop( b_videoOnTop );
- videoWidget->SetFullScreen( fs );
+ videoWidget->SetFullScreen( fs, b_videoOnTop );
}
/* Slot to change the video always-on-top flag.