Commit 76dfb93e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4: Fix hotkey i for FS controller

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>

Conflicts:
parent 069f260a
...@@ -1007,7 +1007,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, ...@@ -1007,7 +1007,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
#ifdef WIN32TRICK #ifdef WIN32TRICK
setWindowOpacity( 0.0 ); setWindowOpacity( 0.0 );
fscHidden = true; b_fscHidden = true;
adjustSize(); adjustSize();
show(); show();
#endif #endif
...@@ -1032,9 +1032,9 @@ void FullscreenControllerWidget::showFSC() ...@@ -1032,9 +1032,9 @@ void FullscreenControllerWidget::showFSC()
if( isHidden() ) if( isHidden() )
show(); show();
if( fscHidden ) if( b_fscHidden )
{ {
fscHidden = false; b_fscHidden = false;
setWindowOpacity( 1.0 ); setWindowOpacity( 1.0 );
} }
#else #else
...@@ -1054,7 +1054,7 @@ void FullscreenControllerWidget::showFSC() ...@@ -1054,7 +1054,7 @@ void FullscreenControllerWidget::showFSC()
void FullscreenControllerWidget::hideFSC() void FullscreenControllerWidget::hideFSC()
{ {
#ifdef WIN32TRICK #ifdef WIN32TRICK
fscHidden = true; b_fscHidden = true;
setWindowOpacity( 0.0 ); // simulate hidding setWindowOpacity( 0.0 ); // simulate hidding
#else #else
hide(); hide();
...@@ -1099,7 +1099,7 @@ void FullscreenControllerWidget::slowHideFSC() ...@@ -1099,7 +1099,7 @@ void FullscreenControllerWidget::slowHideFSC()
else else
{ {
#ifdef WIN32TRICK #ifdef WIN32TRICK
if ( windowOpacity() > 0.0 && !fscHidden ) if ( windowOpacity() > 0.0 && !b_fscHidden )
#else #else
if ( windowOpacity() > 0.0 ) if ( windowOpacity() > 0.0 )
#endif #endif
...@@ -1126,8 +1126,21 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -1126,8 +1126,21 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
switch( event->type() ) switch( event->type() )
{ {
case FullscreenControlToggle_Type: case FullscreenControlToggle_Type:
// FIXME vlc_mutex_lock( &lock );
TOGGLEV( this ); b_fs = b_fullscreen;
vlc_mutex_unlock( &lock );
if( b_fs )
#if WIN32TRICK
if( b_fscHidden )
#else
if( isHidden() )
#endif
{
p_hideTimer->stop();
showFSC();
}
else
hideFSC();
break; break;
case FullscreenControlShow_Type: case FullscreenControlShow_Type:
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
......
...@@ -288,7 +288,7 @@ private: ...@@ -288,7 +288,7 @@ private:
int i_slow_hide_timeout; int i_slow_hide_timeout;
#ifdef WIN32TRICK #ifdef WIN32TRICK
bool fscHidden; bool b_fscHidden;
#endif #endif
virtual void customEvent( QEvent *event ); virtual void customEvent( QEvent *event );
......
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