From 6eea8da1af6bdc310f1c27884b18963b155dc021 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 5 Nov 2016 16:39:46 +0100 Subject: [PATCH] [output] bugfix: enable scroll-wheeling again The callback registration/lookup logic was flawed, so that callbacks without module name were never executed. --- bumblebee/output.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index 35a451d..e825714 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -74,8 +74,12 @@ class Output(object): module = event.get("instance", event.get("name", None)) cb = self._callbacks.get(( event.get("button", -1), - module, + None, ), None) + cb = self._callbacks.get(( + event.get("button", -1), + event.get("instance", event.get("name", None)), + ), cb) if inspect.isfunction(cb) or cb is None: return cb return Command(cb)