summaryrefslogtreecommitdiffstats
path: root/libvo/vo_directx.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-13 13:33:03 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-13 13:33:03 +0000
commit138770a9b9bd232571071fe6e3464f520c3e8e6f (patch)
tree76d68eebfaaecfb6f10dc06ab829e4246ed76a55 /libvo/vo_directx.c
parent5f49de8ec4050bc05cf119775268a49edac1f328 (diff)
downloadmpv-138770a9b9bd232571071fe6e3464f520c3e8e6f.tar.bz2
mpv-138770a9b9bd232571071fe6e3464f520c3e8e6f.tar.xz
ignore mouseclicks when activating the window
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12193 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r--libvo/vo_directx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index f4b0b7616b..90893905b4 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -1,6 +1,6 @@
/******************************************************************************
* vo_directx.c: Directx v2 or later DirectDraw interface for MPlayer
- * Copyright (c) 2002 Sascha Sommer <saschasommer@freenet.de>.
+ * Copyright (c) 2002 - 2004 Sascha Sommer <saschasommer@freenet.de>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -835,6 +835,8 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
{
switch (message)
{
+ case WM_MOUSEACTIVATE:
+ return MA_ACTIVATEANDEAT;
case WM_NCACTIVATE:
{
if(vidmode && adapter_count > 2) //only disable if more than one adapter.