summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-11 19:21:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-11 19:21:36 +0000
commit69c3d22e006ddd63fd3de5ae1436051ad1cac854 (patch)
treec848bc7b062ba877df722e76eca12f3a53fe83d8 /libvo
parent9d781a117a4f7218a5815254703c4023699f6ace (diff)
downloadmpv-69c3d22e006ddd63fd3de5ae1436051ad1cac854.tar.bz2
mpv-69c3d22e006ddd63fd3de5ae1436051ad1cac854.tar.xz
Fix Windows OpenGL -wid:
Disable the Window instead of explicitly passing on click events. This also makes Drag-and-Drop work if the -wid window supports it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27904 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/w32_common.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index bae8ff3dfe..338351f06b 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -43,8 +43,6 @@ static BOOL (WINAPI* myEnumDisplayMonitors)(HDC, LPCRECT, MONITORENUMPROC, LPARA
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
RECT r;
POINT p;
- if (WinID < 0 || message == WM_PAINT || message == WM_ERASEBKGND ||
- message == WM_SIZE) {
switch (message) {
case WM_ERASEBKGND: // no need to erase background seperately
return 1;
@@ -147,19 +145,6 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
break;
}
}
- } else switch (message) {
- case WM_MOUSEMOVE:
- case WM_LBUTTONDOWN:
- case WM_LBUTTONUP:
- case WM_LBUTTONDBLCLK:
- case WM_MBUTTONDOWN:
- case WM_MBUTTONUP:
- case WM_MBUTTONDBLCLK:
- case WM_RBUTTONDOWN:
- case WM_RBUTTONUP:
- case WM_RBUTTONDBLCLK:
- SendNotifyMessage(WinID, message, wParam, lParam);
- }
return DefWindowProc(hWnd, message, wParam, lParam);
}
@@ -394,6 +379,7 @@ int vo_w32_init(void) {
vo_window = CreateWindowEx(WS_EX_NOPARENTNOTIFY, classname, classname,
WS_CHILD | WS_VISIBLE,
0, 0, vo_dwidth, vo_dheight, WinID, 0, hInstance, 0);
+ EnableWindow(vo_window, 0);
} else
vo_window = CreateWindowEx(0, classname, classname,
vo_border ? (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP,