From dcda1bb3a43c6ae2ed00989d9303aed57dae8112 Mon Sep 17 00:00:00 2001 From: enkore Date: Tue, 2 Feb 2016 15:47:00 +0100 Subject: [PATCH] Fix initialization error if standalone is False Does anybody even use this scenario anymore? We could remove quite some code if we only supported standalone operation. --- i3pystatus/core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/core/__init__.py b/i3pystatus/core/__init__.py index d92d6e9..c560084 100644 --- a/i3pystatus/core/__init__.py +++ b/i3pystatus/core/__init__.py @@ -50,7 +50,7 @@ class Status: def __init__(self, standalone=False, **kwargs): self.standalone = standalone - self.click_events = kwargs.get("click_events", True) + self.click_events = kwargs.get("click_events", True if standalone else False) interval = kwargs.get("interval", 1) input_stream = kwargs.get("input_stream", sys.stdin) if "logfile" in kwargs: