[vlc-devel] commit: Qt4: move fullscreen window on current viewport (Ilkka Ollakka )
Laurent Aimar
fenrir at via.ecp.fr
Thu Aug 13 21:57:08 CEST 2009
On Thu, Aug 13, 2009, git version control wrote:
> vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Aug 13 22:47:07 2009 +0300| [3cddf245543afb17406a2017764d73167fa6bd86] | committer: Ilkka Ollakka
>
> Qt4: move fullscreen window on current viewport
>
> This restores functionality, that video goes fullscreen on same screen
> that vlc player is. For somereason it didn't work correctly when
> reparented to QDesktop-screen( num ) widget.
>
> if( b_fs )
> { /* Go full-screen */
> - reparentable->setWindowState( newstate );
> + int numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
> + QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
> +
> reparentable->setParent( NULL );
> + reparentable->setWindowState( newstate );
This basically revert half of ad8f9a79efaf35df91a2c1a0f81d2eef98d34103.
Is the order change between setParent and setWindowState needed ?
--
fenrir
More information about the vlc-devel
mailing list