Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

send a MOUSE_MOVE message with no offsetX or offsetY when focusing co…

…ntrols from the touch handler. fixes spurious popups of the video or music OSDs
  • Loading branch information...
commit 880c202aaa49962dcc8bac1c8896bfd0de3982a6 1 parent d68d97c
Jonathan Marshall authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 xbmc/Application.cpp
View
12 xbmc/Application.cpp
@@ -534,16 +534,8 @@ bool CApplication::OnEvent(XBMC_Event& newEvent)
int windowId = g_windowManager.GetActiveWindow() & WINDOW_ID_MASK;
if (newEvent.touch.action == ACTION_TOUCH_TAP)
- {
- // Send a mouse motion event for getting the current guiitem selected
- XBMC_Event mouseEvent;
- memset(&mouseEvent, 0, sizeof(mouseEvent));
-
- mouseEvent.type = XBMC_MOUSEMOTION;
- mouseEvent.motion.type = XBMC_MOUSEMOTION;
- mouseEvent.motion.x = newEvent.touch.x;
- mouseEvent.motion.y = newEvent.touch.y;
- OnEvent(mouseEvent);
+ { // Send a mouse motion event with no dx,dy for getting the current guiitem selected
+ g_application.OnAction(CAction(ACTION_MOUSE_MOVE, 0, newEvent.touch.x, newEvent.touch.y, 0, 0));
}
int actionId = 0;
if (newEvent.touch.action == ACTION_GESTURE_BEGIN || newEvent.touch.action == ACTION_GESTURE_END)
Please sign in to comment.
Something went wrong with that request. Please try again.