[vlc-commits] kva: hide mouse pointer only if it is not hidden

KO Myung-Hun git at videolan.org
Mon Oct 22 10:58:08 CEST 2012


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sun Oct 21 20:21:15 2012 +0900| [4995ad77e79d68b6ce2b1074a910a1938282d329] | committer: Jean-Baptiste Kempf

kva: hide mouse pointer only if it is not hidden

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4995ad77e79d68b6ce2b1074a910a1938282d329
---

 modules/video_output/kva.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 19ab65f..4151ffa 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -437,7 +437,8 @@ static int Control( vout_display_t *vd, int query, va_list args )
         POINTL ptl;
 
         WinQueryPointerPos( HWND_DESKTOP, &ptl );
-        if( WinWindowFromPoint( HWND_DESKTOP, &ptl, TRUE ) == sys->client )
+        if( !sys->is_mouse_hidden &&
+            WinWindowFromPoint( HWND_DESKTOP, &ptl, TRUE ) == sys->client )
         {
             WinShowPointer( HWND_DESKTOP, FALSE );
             sys->is_mouse_hidden = true;



More information about the vlc-commits mailing list