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
...@@ -1125,25 +1125,38 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -1125,25 +1125,38 @@ 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;
break; vlc_mutex_unlock( &lock );
case FullscreenControlShow_Type: if( b_fs )
vlc_mutex_lock( &lock ); #if WIN32TRICK
b_fs = b_fullscreen; if( b_fscHidden )
vlc_mutex_unlock( &lock ); #else
if( isHidden() )
if( b_fs ) // FIXME I am not sure about that one #endif
showFSC(); {
break; p_hideTimer->stop();
case FullscreenControlHide_Type: showFSC();
hideFSC(); }
break; else
case FullscreenControlPlanHide_Type: hideFSC();
if( !b_mouse_over ) // Only if the mouse is not over FSC break;
planHideFSC(); case FullscreenControlShow_Type:
break; vlc_mutex_lock( &lock );
b_fs = b_fullscreen;
vlc_mutex_unlock( &lock );
if( b_fs ) // FIXME I am not sure about that one
showFSC();
break;
case FullscreenControlHide_Type:
hideFSC();
break;
case FullscreenControlPlanHide_Type:
if( !b_mouse_over ) // Only if the mouse is not over FSC
planHideFSC();
break;
} }
} }
......
...@@ -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