Permalink
Browse files

[droid] also unfocus a focused item on any XBMC_MOUSEBUTTONUP event

  • Loading branch information...
1 parent 4709d58 commit 4659502892c438572c01b342b90ffd997e28a6b9 @Montellese Montellese committed Aug 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/windowing/android/WinEventsAndroid.cpp
@@ -27,6 +27,7 @@
#include "windowing/WindowingFactory.h"
#include "threads/CriticalSection.h"
#include "utils/log.h"
+#include "guilib/GUIWindowManager.h"
static CCriticalSection g_inputCond;
@@ -61,6 +62,9 @@ bool CWinEventsAndroid::MessagePump()
for (std::vector<XBMC_Event>::iterator iter = copy_events.begin(); iter != copy_events.end(); iter++)
{
ret |= g_application.OnEvent(*iter);
+
+ if (iter->type == XBMC_MOUSEBUTTONUP)
+ g_windowManager.SendMessage(GUI_MSG_UNFOCUS_ALL, 0, 0, 0, 0);
}
return ret;

0 comments on commit 4659502

Please sign in to comment.