changeset 25934:f0e227951c06

Make sure the -wid window does not get notified when we destroy our attached child window. Previous behaviour seems to cause QT to do something stupid which makes DestroyWindow hang (SMPlayer is an application where this happened).
author reimar
date Sat, 09 Feb 2008 14:47:10 +0000
parents 9b395b94d6a7
children 6e477c9e5410
files libvo/w32_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/w32_common.c	Sat Feb 09 14:14:35 2008 +0000
+++ b/libvo/w32_common.c	Sat Feb 09 14:47:10 2008 +0000
@@ -374,7 +374,7 @@
         RECT r;
         GetClientRect(WinID, &r);
         vo_dwidth = r.right; vo_dheight = r.bottom;
-        vo_window = CreateWindowEx(0, classname, classname,
+        vo_window = CreateWindowEx(WS_EX_NOPARENTNOTIFY, classname, classname,
                      WS_CHILD | WS_VISIBLE,
                      0, 0, vo_dwidth, vo_dheight, WinID, 0, hInstance, 0);
     } else