Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c617646c
Commit
c617646c
authored
Jun 25, 2008
by
Lukas Durfina
Committed by
Jean-Baptiste Kempf
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hidding of fullscreen controller after leaving fullscreen
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d89fff7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+10
-6
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+3
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
c617646c
...
...
@@ -878,7 +878,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
MainInterface
*
_p_mi
,
bool
b_advControls
,
bool
b_shiny
)
:
ControlsWidget
(
_p_i
,
_p_mi
,
b_advControls
,
b_shiny
,
true
),
i_lastPosX
(
-
1
),
i_lastPosY
(
-
1
),
i_hideTimeout
(
1
),
b_mouseIsOver
(
false
)
b_mouseIsOver
(
false
)
,
b_isFullscreen
(
false
)
{
setWindowFlags
(
Qt
::
ToolTip
);
...
...
@@ -976,7 +976,11 @@ void FullscreenControllerWidget::slowHideFSC()
}
else
{
#ifdef WIN32TRICK
if
(
windowOpacity
()
>
0.0
&&
!
fscHidden
)
#else
if
(
windowOpacity
()
>
0.0
)
#endif
{
/* we should use 0.01 because of 100 pieces ^^^
but than it cannt be done in time */
...
...
@@ -1013,7 +1017,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
{
int
type
=
event
->
type
();
if
(
type
==
FullscreenControlShow_Type
)
if
(
type
==
FullscreenControlShow_Type
&&
b_isFullscreen
)
{
#ifdef WIN32TRICK
// after quiting and going to fs, we need to call show()
...
...
@@ -1150,7 +1154,8 @@ static int regMouseMoveCallback( vlc_object_t *vlc_object, const char *variable,
if
(
var_GetBool
(
p_vout
,
"fullscreen"
)
&&
!
b_registered
)
{
p_fs
->
SetHideTimeout
(
var_GetInteger
(
p_vout
,
"mouse-hide-timeout"
)
);
p_fs
->
setHideTimeout
(
var_GetInteger
(
p_vout
,
"mouse-hide-timeout"
)
);
p_fs
->
setIsFullscreen
(
true
);
var_AddCallback
(
p_vout
,
"mouse-moved"
,
showFullscreenControllCallback
,
(
void
*
)
p_fs
);
b_registered
=
true
;
...
...
@@ -1158,14 +1163,13 @@ static int regMouseMoveCallback( vlc_object_t *vlc_object, const char *variable,
if
(
!
var_GetBool
(
p_vout
,
"fullscreen"
)
&&
b_registered
)
{
p_fs
->
setIsFullscreen
(
false
);
p_fs
->
hide
();
var_DelCallback
(
p_vout
,
"mouse-moved"
,
showFullscreenControllCallback
,
(
void
*
)
p_fs
);
b_registered
=
false
;
}
if
(
!
var_GetBool
(
p_vout
,
"fullscreen"
)
)
p_fs
->
hide
();
return
VLC_SUCCESS
;
}
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
c617646c
...
...
@@ -250,7 +250,8 @@ public:
FullscreenControllerWidget
(
intf_thread_t
*
,
MainInterface
*
,
bool
,
bool
);
virtual
~
FullscreenControllerWidget
();
void
SetHideTimeout
(
int
hideTimeout
)
{
i_hideTimeout
=
hideTimeout
;
}
void
setHideTimeout
(
int
hideTimeout
)
{
i_hideTimeout
=
hideTimeout
;
}
void
setIsFullscreen
(
bool
isFS
)
{
b_isFullscreen
=
isFS
;
}
void
regFullscreenCallback
(
vout_thread_t
*
p_vout
);
bool
isFSCHidden
();
...
...
@@ -283,6 +284,7 @@ private:
int
i_lastPosY
;
int
i_hideTimeout
;
/* FSC hiding timeout, same as mouse hiding timeout */
bool
b_mouseIsOver
;
bool
b_isFullscreen
;
#ifdef WIN32TRICK
bool
fscHidden
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment