[MPlayer-dev-eng] [PATCH] windows -vo gl move window with ALT key, pass mouseclick on
Reimar Doeffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jun 27 16:03:56 CEST 2006
Hello,
the attached patch changes the behaviour of -vo gl and gl2 under windows.
Currently the default action on mouse-click is to move the window, which
can be overridden by pressing the CTRL key.
The attached patch would change this to be more linux-like, with default
being to send the mouse-click further on to MPlayer, while pressing the
ALT key allows to move the window.
Please comment, both on the behaviour change and the patch itself.
Greetings,
Reimar Doeffinger
-------------- next part --------------
Index: libvo/w32_common.c
===================================================================
--- libvo/w32_common.c (Revision 18838)
+++ libvo/w32_common.c (Arbeitskopie)
@@ -90,7 +90,7 @@
mplayer_put_key(wParam);
break;
case WM_LBUTTONDOWN:
- if (!vo_nomouse_input && (vo_fs || (wParam & MK_CONTROL))) {
+ if (!vo_nomouse_input && !(GetKeyState(VK_MENU) & 0x8000)) {
mplayer_put_key(MOUSE_BTN0);
break;
}
More information about the MPlayer-dev-eng
mailing list