From 138770a9b9bd232571071fe6e3464f520c3e8e6f Mon Sep 17 00:00:00 2001 From: faust3 Date: Tue, 13 Apr 2004 13:33:03 +0000 Subject: ignore mouseclicks when activating the window git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12193 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libvo') 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 . + * Copyright (c) 2002 - 2004 Sascha Sommer . * * 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. -- cgit v1.2.3