[vlc-commits] commit: Added Qt::Tool flag on the fullscreen widget. (Laurent Aimar )

git at videolan.org git at videolan.org
Sun May 23 22:44:58 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun May 23 22:38:56 2010 +0200| [a91750568de08cd94738e8692420ddc4b2088f5c] | committer: Laurent Aimar 

Added Qt::Tool flag on the fullscreen widget.

 It fixes 'on top' behaviour when going fullscreen (at least for linux), and
it avoid having a 'Untitled Window' in the taskbar when fullscreen.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a91750568de08cd94738e8692420ddc4b2088f5c
---

 modules/gui/qt4/components/interface_widgets.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 988b95d..87521ab 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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 */



More information about the vlc-commits mailing list