Commit a9175056 authored by Laurent Aimar's avatar 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.
parent a61cb21f
...@@ -197,12 +197,12 @@ void VideoWidget::SetFullScreen( bool b_fs ) ...@@ -197,12 +197,12 @@ void VideoWidget::SetFullScreen( bool b_fs )
if( b_fs ) if( b_fs )
{ {
newstate |= Qt::WindowFullScreen; newstate |= Qt::WindowFullScreen;
newflags |= Qt::WindowStaysOnTopHint; newflags |= Qt::WindowStaysOnTopHint | Qt::Tool;
} }
else else
{ {
newstate &= ~Qt::WindowFullScreen; newstate &= ~Qt::WindowFullScreen;
newflags &= ~Qt::WindowStaysOnTopHint; newflags &= ~(Qt::WindowStaysOnTopHint | Qt::Tool);
} }
if( newstate == curstate ) if( newstate == curstate )
return; /* no changes needed */ return; /* no changes needed */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment