Fix mouse clicks
@@ -538,9 +538,6 @@ class Py3status:
index = event['index']
button = event['button']
- if not index:
- return
-
if index not in self._control_states.keys():
if button == self.button_toggle:
index = 'toggle'
@@ -555,6 +552,7 @@ class Py3status:
elif button != 1:
return
+ if index:
control_state = self._control_states[index]
if self._player and self._get_button_state(control_state):
getattr(self._player, self._control_states[index]['action'])()
