summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkomh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-11-02 13:51:52 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-07 21:49:10 +0200
commit163ae34e96e62a07cb20255e909a75440de753ad (patch)
tree2224e849d67226d903f517e05ed981467af2c8ed
parent0142db087bf9b61579862423e8b37a3970b89445 (diff)
downloadmpv-163ae34e96e62a07cb20255e909a75440de753ad.tar.bz2
mpv-163ae34e96e62a07cb20255e909a75440de753ad.tar.xz
vo_kva: Prevent a parent window from painting over ours in slave mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32569 b3059339-0415-0410-9bf9-f77b7e298cf2
-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 =