Commit 27b241e4 authored by Benoit's avatar Benoit Committed by Jean-Baptiste Kempf

Qt: toggling fullscreen by double click toggles everything

Fix #14064
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7211424f
......@@ -1180,6 +1180,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou
vout.append( p_vout );
var_AddCallback( p_vout, "fullscreen",
FullscreenControllerWidgetFullscreenChanged, this );
CONNECT( this, fullscreenChanged( bool ), THEMIM, changeFullscreen( bool ) );
/* I miss a add and fire */
fullscreenChanged( p_vout, var_GetBool( p_vout, "fullscreen" ),
var_GetInteger( p_vout, "mouse-hide-timeout" ) );
......@@ -1217,6 +1218,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlHide, 0 );
QApplication::postEvent( this, eHide );
}
emit fullscreenChanged( b_fullscreen );
vlc_mutex_unlock( &lock );
}
......
......@@ -260,6 +260,7 @@ public:
signals:
void keyPressed( QKeyEvent * );
void fullscreenChanged( bool );
public slots:
void setVoutList( vout_thread_t **, int );
......
......@@ -1261,3 +1261,9 @@ int MainInputManager::PLItemRemoved
}
return VLC_SUCCESS;
}
void MainInputManager::changeFullscreen( bool new_val )
{
if ( var_GetBool( THEPL, "fullscreen" ) != new_val)
var_SetBool( THEPL, "fullscreen", new_val );
}
......@@ -316,6 +316,7 @@ public slots:
void activatePlayQuit( bool );
void loopRepeatLoopStatus();
void changeFullscreen( bool );
private slots:
void notifyRandom( bool );
......
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