]> git.sesse.net Git - vlc/commitdiff
Added Qt::Tool flag on the fullscreen widget.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 23 May 2010 20:38:56 +0000 (22:38 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 23 May 2010 20:38:56 +0000 (22:38 +0200)
 It fixes 'on top' behaviour when going fullscreen (at least for linux), and
it avoid having a 'Untitled Window' in the taskbar when fullscreen.

modules/gui/qt4/components/interface_widgets.cpp

index 988b95dd9b80f7474f4ed7db1659d0e7b01adec5..87521abb69513b93b08d6dcab2d2a85e43e91449 100644 (file)
@@ -197,12 +197,12 @@ void VideoWidget::SetFullScreen( bool b_fs )
     if( b_fs )
     {
         newstate |= Qt::WindowFullScreen;
-        newflags |= Qt::WindowStaysOnTopHint;
+        newflags |= Qt::WindowStaysOnTopHint | Qt::Tool;
     }
     else
     {
         newstate &= ~Qt::WindowFullScreen;
-        newflags &= ~Qt::WindowStaysOnTopHint;
+        newflags &= ~(Qt::WindowStaysOnTopHint | Qt::Tool);
     }
     if( newstate == curstate )
         return; /* no changes needed */