hrev46620 adds 1 changeset to branch 'master' old head: fbe8c1ce608f63245180ad0075e7ea0d3911d03c new head: a82d922deb0614f1f3b51b3162d11ffd0c800cb6 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a82d922+%5Efbe8c1c ---------------------------------------------------------------------------- a82d922: workspaces: switch current workspace on mouse wheel Gnome does that on the panel widget, at first it was annoying but after a while it feels quite handy. [ François Revol <revol@xxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev46620 Commit: a82d922deb0614f1f3b51b3162d11ffd0c800cb6 URL: http://cgit.haiku-os.org/haiku/commit/?id=a82d922 Author: François Revol <revol@xxxxxxx> Date: Mon Dec 30 18:07:16 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 10 insertions(+) src/apps/workspaces/Workspaces.cpp | 10 ++++++++++ ---------------------------------------------------------------------------- diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp index e9fc3e0..8a1bfde 100644 --- a/src/apps/workspaces/Workspaces.cpp +++ b/src/apps/workspaces/Workspaces.cpp @@ -505,6 +505,16 @@ WorkspacesView::MessageReceived(BMessage* message) _AboutRequested(); break; + case B_MOUSE_WHEEL_CHANGED: + { + float dy = message->FindFloat("be:wheel_delta_y"); + if (dy > 0.1) + activate_workspace(current_workspace() + 1); + if (dy < -0.1) + activate_workspace(current_workspace() - 1); + break; + } + case kMsgChangeCount: be_roster->Launch(kScreenPrefletSignature); break;