[vlc-commits] vout:win32: get the window root using the hvideownd

Steve Lhomme git at videolan.org
Thu Apr 4 12:30:57 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr  4 12:15:19 2019 +0200| [4b3ca07e6868cd3070e7bb4dbe6c1fd9dc1db115] | committer: Steve Lhomme

vout:win32: get the window root using the hvideownd

Instead of the the main hwnd on which we should rely less (and it should
disappear when don't rely on it to place the video window).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b3ca07e6868cd3070e7bb4dbe6c1fd9dc1db115
---

 modules/video_output/win32/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index b9d1c69fee..37038ac88f 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -227,7 +227,7 @@ static void CommonChangeThumbnailClip(vlc_object_t *obj, vout_display_sys_win32_
         ITaskbarList3 *taskbl = ptr;
         taskbl->lpVtbl->HrInit(taskbl);
 
-        HWND hroot = GetAncestor(sys->hwnd,GA_ROOT);
+        HWND hroot = GetAncestor(sys->hvideownd, GA_ROOT);
         RECT video;
         if (show) {
             GetWindowRect(sys->hparent, &video);



More information about the vlc-commits mailing list