Permalink
Browse files

[fix] - process mouse buttons only on button release - except mousewh…

…eel - fixes the breaking of screensaver through mouseclick
  • Loading branch information...
1 parent 33fcf32 commit 30a90701ecff5ac147796d4dadc9c08924a90c27 @Memphiz Memphiz committed Jul 27, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/Application.cpp
@@ -378,6 +378,12 @@ bool CApplication::OnEvent(XBMC_Event& newEvent)
g_Keyboard.ProcessKeyUp();
break;
case XBMC_MOUSEBUTTONDOWN:
+ g_Mouse.HandleEvent(newEvent);
+ // Only mousewheel actions should be processed at this point. Other
+ // mouse button actions are processed when the button is released.
+ if (g_Mouse.GetAction() == ACTION_MOUSE_WHEEL_UP || g_Mouse.GetAction() == ACTION_MOUSE_WHEEL_DOWN)
+ g_application.ProcessMouse();
+ break;
case XBMC_MOUSEBUTTONUP:
case XBMC_MOUSEMOTION:
g_Mouse.HandleEvent(newEvent);

0 comments on commit 30a9070

Please sign in to comment.