Skip to content

Commit

Permalink
Merge pull request xbmc#2466 from ulion/fix_gesture_notify_action_on_…
Browse files Browse the repository at this point in the history
…fullscreen

[Fix] ACTION_GESTURE_NOTIFY should not trigger osd.
  • Loading branch information
Memphiz committed Mar 19, 2013
2 parents c28ead9 + e7be610 commit 44bf55c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/music/windows/GUIWindowVisualisation.cpp
Expand Up @@ -198,6 +198,8 @@ EVENT_RESULT CGUIWindowVisualisation::OnMouseEvent(const CPoint &point, const CM
OnAction(CAction(ACTION_SHOW_GUI));
return EVENT_RESULT_HANDLED;
}
if (event.m_id == ACTION_GESTURE_NOTIFY)
return EVENT_RESULT_UNHANDLED;
if (event.m_id != ACTION_MOUSE_MOVE || event.m_offsetX || event.m_offsetY)
{ // some other mouse action has occurred - bring up the OSD
CGUIDialog *pOSD = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_MUSIC_OSD);
Expand Down
2 changes: 2 additions & 0 deletions xbmc/video/windows/GUIWindowFullScreen.cpp
Expand Up @@ -852,6 +852,8 @@ EVENT_RESULT CGUIWindowFullScreen::OnMouseEvent(const CPoint &point, const CMous
{
return g_application.OnAction(CAction(ACTION_ANALOG_SEEK_BACK, 0.5f)) ? EVENT_RESULT_HANDLED : EVENT_RESULT_UNHANDLED;
}
if (event.m_id == ACTION_GESTURE_NOTIFY)
return EVENT_RESULT_UNHANDLED;
if (event.m_id != ACTION_MOUSE_MOVE || event.m_offsetX || event.m_offsetY)
{ // some other mouse action has occurred - bring up the OSD
// if it is not already running
Expand Down

0 comments on commit 44bf55c

Please sign in to comment.