[vlc-devel] [PATCH 5/6] win32: don't hide controls while mouse is within
Daniel Amm
da2424 at t-online.de
Tue Dec 15 22:15:36 CET 2015
This was a regression since 66aef01260fe87de5f04818dd9e1d556a87a6a93
---
common/win32_fullscreen.cpp | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index dde488f..854d63c 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -237,7 +237,17 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
}
case WM_TIMER:{
- NeedHideControls();
+ POINT MousePoint;
+ GetCursorPos(&MousePoint);
+ RECT ControlWndRect;
+ GetWindowRect(hWnd(), &ControlWndRect);
+ if(PtInRect(&ControlWndRect, MousePoint)||GetCapture()==hVolumeSlider){
+ //do not allow control window to close while mouse is within
+ NeedShowControls();
+ }
+ else{
+ NeedHideControls();
+ }
break;
}
case WM_SETCURSOR:{
--
2.6.3.windows.1
More information about the vlc-devel
mailing list