Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
99388401
Commit
99388401
authored
Apr 27, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved win7 taskbar disabling code from qt4 to msw.
parent
1402fd52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
55 deletions
+47
-55
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+0
-24
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+47
-31
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
99388401
...
@@ -239,30 +239,6 @@ void VideoWidget::release( void )
...
@@ -239,30 +239,6 @@ void VideoWidget::release( void )
msg_Dbg
(
p_intf
,
"Video is not needed anymore"
);
msg_Dbg
(
p_intf
,
"Video is not needed anymore"
);
//layout->removeWidget( reparentable );
//layout->removeWidget( reparentable );
#ifdef WIN32
/* Come back to default thumbnail for Windows 7 taskbar */
LPTASKBARLIST3
p_taskbl
;
CoInitialize
(
0
);
if
(
S_OK
==
CoCreateInstance
(
&
clsid_ITaskbarList
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ITaskbarList3
,
(
void
**
)
&
p_taskbl
)
)
{
p_taskbl
->
vt
->
HrInit
(
p_taskbl
);
HWND
hroot
=
GetAncestor
(
reparentable
->
winId
(),
GA_ROOT
);
if
(
S_OK
!=
p_taskbl
->
vt
->
SetThumbnailClip
(
p_taskbl
,
hroot
,
NULL
))
msg_Err
(
p_intf
,
"SetThumbNailClip failed"
);
msg_Err
(
p_intf
,
"Releasing taskbar | root handle = %08x"
,
hroot
);
p_taskbl
->
vt
->
Release
(
p_taskbl
);
}
CoUninitialize
();
#endif
delete
reparentable
;
delete
reparentable
;
reparentable
=
NULL
;
reparentable
=
NULL
;
updateGeometry
();
updateGeometry
();
...
...
modules/video_output/msw/common.c
View file @
99388401
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
//WINSHELLAPI BOOL WINAPI SHFullScreen(HWND hwndRequester, DWORD dwState);
//WINSHELLAPI BOOL WINAPI SHFullScreen(HWND hwndRequester, DWORD dwState);
#endif
#endif
static
void
CommonChangeThumbnailClip
(
vout_display_t
*
,
bool
show
);
static
int
CommonControlSetFullscreen
(
vout_display_t
*
,
bool
is_fullscreen
);
static
int
CommonControlSetFullscreen
(
vout_display_t
*
,
bool
is_fullscreen
);
static
void
DisableScreensaver
(
vout_display_t
*
);
static
void
DisableScreensaver
(
vout_display_t
*
);
...
@@ -135,6 +136,7 @@ void CommonClean(vout_display_t *vd)
...
@@ -135,6 +136,7 @@ void CommonClean(vout_display_t *vd)
vout_display_sys_t
*
sys
=
vd
->
sys
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
if
(
sys
->
event
)
{
if
(
sys
->
event
)
{
CommonChangeThumbnailClip
(
vd
,
false
);
EventThreadStop
(
sys
->
event
);
EventThreadStop
(
sys
->
event
);
EventThreadDestroy
(
sys
->
event
);
EventThreadDestroy
(
sys
->
event
);
}
}
...
@@ -230,6 +232,49 @@ void AlignRect(RECT *r, int align_boundary, int align_size)
...
@@ -230,6 +232,49 @@ void AlignRect(RECT *r, int align_boundary, int align_size)
r
->
right
=
((
r
->
right
-
r
->
left
+
align_size
/
2
)
&
~
align_size
)
+
r
->
left
;
r
->
right
=
((
r
->
right
-
r
->
left
+
align_size
/
2
)
&
~
align_size
)
+
r
->
left
;
}
}
/* */
static
void
CommonChangeThumbnailClip
(
vout_display_t
*
vd
,
bool
show
)
{
#ifndef UNDER_CE
vout_display_sys_t
*
sys
=
vd
->
sys
;
/* Windows 7 taskbar thumbnail code */
OSVERSIONINFO
winVer
;
winVer
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFO
);
if
(
!
GetVersionEx
(
&
winVer
)
||
winVer
.
dwMajorVersion
<=
5
)
return
;
CoInitialize
(
0
);
LPTASKBARLIST3
taskbl
;
if
(
S_OK
==
CoCreateInstance
(
&
clsid_ITaskbarList
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ITaskbarList3
,
&
taskbl
))
{
taskbl
->
vt
->
HrInit
(
taskbl
);
HWND
hroot
=
GetAncestor
(
sys
->
hwnd
,
GA_ROOT
);
RECT
relative
;
if
(
show
)
{
RECT
video
,
parent
;
GetWindowRect
(
sys
->
hvideownd
,
&
video
);
GetWindowRect
(
hroot
,
&
parent
);
relative
.
left
=
video
.
left
-
parent
.
left
-
8
;
relative
.
top
=
video
.
top
-
parent
.
top
-
10
;
relative
.
right
=
video
.
right
-
video
.
left
+
relative
.
left
;
relative
.
bottom
=
video
.
bottom
-
video
.
top
+
relative
.
top
-
25
;
}
if
(
S_OK
!=
taskbl
->
vt
->
SetThumbnailClip
(
taskbl
,
hroot
,
show
?
&
relative
:
NULL
))
msg_Err
(
vd
,
"SetThumbNailClip failed"
);
taskbl
->
vt
->
Release
(
taskbl
);
}
CoUninitialize
();
#endif
}
/*****************************************************************************
/*****************************************************************************
* UpdateRects: update clipping rectangles
* UpdateRects: update clipping rectangles
*****************************************************************************
*****************************************************************************
...
@@ -397,37 +442,8 @@ void UpdateRects(vout_display_t *vd,
...
@@ -397,37 +442,8 @@ void UpdateRects(vout_display_t *vd,
rect_dest_clipped
.
bottom
-=
sys
->
rect_display
.
top
;
rect_dest_clipped
.
bottom
-=
sys
->
rect_display
.
top
;
#endif
#endif
#ifndef UNDER_CE
CommonChangeThumbnailClip
(
vd
,
true
);
/* Windows 7 taskbar thumbnail code */
LPTASKBARLIST3
taskbl
;
OSVERSIONINFO
winVer
;
winVer
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFO
);
if
(
GetVersionEx
(
&
winVer
)
&&
winVer
.
dwMajorVersion
>
5
)
{
CoInitialize
(
0
);
if
(
S_OK
==
CoCreateInstance
(
&
clsid_ITaskbarList
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ITaskbarList3
,
&
taskbl
))
{
RECT
rect_video
,
rect_parent
,
rect_relative
;
HWND
hroot
=
GetAncestor
(
sys
->
hwnd
,
GA_ROOT
);
taskbl
->
vt
->
HrInit
(
taskbl
);
GetWindowRect
(
sys
->
hvideownd
,
&
rect_video
);
GetWindowRect
(
hroot
,
&
rect_parent
);
rect_relative
.
left
=
rect_video
.
left
-
rect_parent
.
left
-
8
;
rect_relative
.
right
=
rect_video
.
right
-
rect_video
.
left
+
rect_relative
.
left
;
rect_relative
.
top
=
rect_video
.
top
-
rect_parent
.
top
-
10
;
rect_relative
.
bottom
=
rect_video
.
bottom
-
rect_video
.
top
+
rect_relative
.
top
-
25
;
if
(
S_OK
!=
taskbl
->
vt
->
SetThumbnailClip
(
taskbl
,
hroot
,
&
rect_relative
))
msg_Err
(
vd
,
"SetThumbNailClip failed"
);
taskbl
->
vt
->
Release
(
taskbl
);
}
CoUninitialize
();
}
#endif
/* Signal the change in size/position */
/* Signal the change in size/position */
sys
->
changes
|=
DX_POSITION_CHANGE
;
sys
->
changes
|=
DX_POSITION_CHANGE
;
...
...
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