diff options
author | jmarshallnz <jcmarsha@gmail.com> | 2014-04-29 13:44:21 +1200 |
---|---|---|
committer | Jonathan Marshall <jmarshall@xbmc.org> | 2014-05-02 08:06:06 +1200 |
commit | 3216b42f0675b12a9ad4d6d2b9c49703c16340da (patch) | |
tree | 71cd00625243f09e885806bebd9572f8c8e10321 | |
parent | f57cd9abca1d8ae1938194344661201f496731ff (diff) |
Merge pull request #4615 from bombizombi/master
Fix for OSD auto hide not working
-rw-r--r-- | xbmc/input/MouseStat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/input/MouseStat.cpp b/xbmc/input/MouseStat.cpp index fb27d92687..77ace26c92 100644 --- a/xbmc/input/MouseStat.cpp +++ b/xbmc/input/MouseStat.cpp @@ -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 |