aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_kva.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_kva.c b/libvo/vo_kva.c
index e75f44dbe5..5c0c934337 100644
--- a/libvo/vo_kva.c
+++ b/libvo/vo_kva.c
@@ -568,8 +568,14 @@ static int preinit(const char *arg)
flFrameFlags = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX |
FCF_SIZEBORDER | FCF_TASKLIST;
} else {
+ ULONG ulStyle;
+
hwndParent = HWNDFROMWINID(WinID);
flFrameFlags = 0;
+
+ // Prevent a parent window from painting over our window
+ ulStyle = WinQueryWindowULong(hwndParent, QWL_STYLE);
+ WinSetWindowULong(hwndParent, QWL_STYLE, ulStyle | WS_CLIPCHILDREN);
}
m_int.hwndFrame =