Merge pull request #4615 from bombizombi/master
authorjmarshallnz <jcmarsha@gmail.com>
Tue, 29 Apr 2014 01:44:21 +0000 (13:44 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Thu, 1 May 2014 20:06:06 +0000 (08:06 +1200)
Fix for OSD auto hide not working

xbmc/input/MouseStat.cpp

index fb27d92..77ace26 100644 (file)
@@ -160,8 +160,8 @@ void CMouseStat::HandleEvent(XBMC_Event& newEvent)
   else if (m_mouseState.dz < 0)
     m_Action = ACTION_MOUSE_WHEEL_DOWN;
 
-  // Finally check for a mouse move (that isn't a drag)
-  else if (newEvent.type == XBMC_MOUSEMOTION)
+  // Check for a mouse move that isn't a drag, ignoring messages with no movement at all
+  else if (newEvent.type == XBMC_MOUSEMOTION && (m_mouseState.dx || m_mouseState.dy))
     m_Action = ACTION_MOUSE_MOVE;
 
   // ignore any other mouse messages