Changeset c617646c2e1a5675791200e7eeb54f111875a559
- Timestamp:
- 26/06/08 07:04:23
(4 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1214456663 -0700
- git-parent:
[d89fff7e007bd4bceb55f5446d2f31e672927c1b]
- git-author:
- Lukas Durfina <lukas.durfina@gmail.com> 1214396744 +0200
- Message:
Fix hidding of fullscreen controller after leaving fullscreen
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3c68fe3 |
rc617646 |
|
| 879 | 879 | : ControlsWidget( _p_i, _p_mi, b_advControls, b_shiny, true ), |
|---|
| 880 | 880 | i_lastPosX( -1 ), i_lastPosY( -1 ), i_hideTimeout( 1 ), |
|---|
| 881 | | b_mouseIsOver( false ) |
|---|
| | 881 | b_mouseIsOver( false ), b_isFullscreen( false ) |
|---|
| 882 | 882 | { |
|---|
| 883 | 883 | setWindowFlags( Qt::ToolTip ); |
|---|
| … | … | |
| 977 | 977 | else |
|---|
| 978 | 978 | { |
|---|
| | 979 | #ifdef WIN32TRICK |
|---|
| | 980 | if ( windowOpacity() > 0.0 && !fscHidden ) |
|---|
| | 981 | #else |
|---|
| 979 | 982 | if ( windowOpacity() > 0.0 ) |
|---|
| | 983 | #endif |
|---|
| 980 | 984 | { |
|---|
| 981 | 985 | /* we should use 0.01 because of 100 pieces ^^^ |
|---|
| … | … | |
| 1014 | 1018 | int type = event->type(); |
|---|
| 1015 | 1019 | |
|---|
| 1016 | | if ( type == FullscreenControlShow_Type ) |
|---|
| | 1020 | if ( type == FullscreenControlShow_Type && b_isFullscreen ) |
|---|
| 1017 | 1021 | { |
|---|
| 1018 | 1022 | #ifdef WIN32TRICK |
|---|
| … | … | |
| 1151 | 1155 | if ( var_GetBool( p_vout, "fullscreen" ) && !b_registered ) |
|---|
| 1152 | 1156 | { |
|---|
| 1153 | | p_fs->SetHideTimeout( var_GetInteger( p_vout, "mouse-hide-timeout" ) ); |
|---|
| | 1157 | p_fs->setHideTimeout( var_GetInteger( p_vout, "mouse-hide-timeout" ) ); |
|---|
| | 1158 | p_fs->setIsFullscreen( true ); |
|---|
| 1154 | 1159 | var_AddCallback( p_vout, "mouse-moved", |
|---|
| 1155 | 1160 | showFullscreenControllCallback, (void *) p_fs ); |
|---|
| … | … | |
| 1159 | 1164 | if ( !var_GetBool( p_vout, "fullscreen" ) && b_registered ) |
|---|
| 1160 | 1165 | { |
|---|
| | 1166 | p_fs->setIsFullscreen( false ); |
|---|
| | 1167 | p_fs->hide(); |
|---|
| 1161 | 1168 | var_DelCallback( p_vout, "mouse-moved", |
|---|
| 1162 | 1169 | showFullscreenControllCallback, (void *) p_fs ); |
|---|
| 1163 | 1170 | b_registered = false; |
|---|
| 1164 | 1171 | } |
|---|
| 1165 | | |
|---|
| 1166 | | if ( !var_GetBool( p_vout, "fullscreen" ) ) |
|---|
| 1167 | | p_fs->hide(); |
|---|
| 1168 | 1172 | |
|---|
| 1169 | 1173 | return VLC_SUCCESS; |
|---|
| r68cb774 |
rc617646 |
|
| 251 | 251 | virtual ~FullscreenControllerWidget(); |
|---|
| 252 | 252 | |
|---|
| 253 | | void SetHideTimeout( int hideTimeout ) { i_hideTimeout = hideTimeout; } |
|---|
| | 253 | void setHideTimeout( int hideTimeout ) { i_hideTimeout = hideTimeout; } |
|---|
| | 254 | void setIsFullscreen( bool isFS ) { b_isFullscreen = isFS; } |
|---|
| 254 | 255 | void regFullscreenCallback( vout_thread_t *p_vout ); |
|---|
| 255 | 256 | |
|---|
| … | … | |
| 284 | 285 | int i_hideTimeout; /* FSC hiding timeout, same as mouse hiding timeout */ |
|---|
| 285 | 286 | bool b_mouseIsOver; |
|---|
| | 287 | bool b_isFullscreen; |
|---|
| 286 | 288 | |
|---|
| 287 | 289 | #ifdef WIN32TRICK |
|---|