Parent has to care about resizing itself */
void VideoWidget::SetSizing( unsigned int w, unsigned int h )
{
+ if (reparentable->windowState() & Qt::WindowFullScreen )
+ return;
msg_Dbg( p_intf, "Video is resizing to: %i %i", w, h );
videoSize.rwidth() = w;
videoSize.rheight() = h;
QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
- reparentable->setWindowState( newstate );
reparentable->setParent( NULL );
+ reparentable->setWindowState( newstate );
reparentable->setWindowFlags( newflags );
/* To be sure window is on proper-screen in xinerama */
if( !screenres.contains( reparentable->pos() ) )
else
{ /* Go windowed */
reparentable->setWindowFlags( newflags );
- layout->addWidget( reparentable );
reparentable->setWindowState( newstate );
+ layout->addWidget( reparentable );
}
videoSync();
}
hide();
}
+
QSize VideoWidget::sizeHint() const
{
return videoSize;