diff --git a/bumblebee-status b/bumblebee-status index e02dfee..dda14e4 100755 --- a/bumblebee-status +++ b/bumblebee-status @@ -106,7 +106,7 @@ def main(): def sig_USR1_handler(signum,stack): if update_lock.acquire(blocking=False) == True: - core.event.trigger("update", redraw_only=False) + core.event.trigger("update", force=True) core.event.trigger("draw") update_lock.release() diff --git a/bumblebee_status/core/output.py b/bumblebee_status/core/output.py index ed36fcd..687cafd 100644 --- a/bumblebee_status/core/output.py +++ b/bumblebee_status/core/output.py @@ -221,15 +221,13 @@ class i3(object): core.event.trigger("next-widget") return blocks - # TODO: only updates full text, not the state!? - # can this TODO be removed now? Will update the state if not redraw_only - def update(self, affected_modules=None, redraw_only=False): + def update(self, affected_modules=None, redraw_only=False, force=False): now = time.time() for module in self.__modules: if affected_modules and not module.id in affected_modules: continue if not affected_modules and module.next_update: - if now < module.next_update and redraw_only: + if now < module.next_update and not force: continue if not redraw_only: