Adjust to newest i3bar patch
This commit is contained in:
parent
8dd88a6180
commit
c41c2736bf
@ -29,10 +29,9 @@ class Status:
|
||||
|
||||
def run_command_endpoint(self):
|
||||
for command in io.JSONIO(io=io.IOHandler(sys.stdin, open(os.devnull,"w")), skiplines=1).read():
|
||||
if command["command"] == "block_clicked":
|
||||
module = self.modules.get_by_id(command["instance"])
|
||||
if module:
|
||||
module.on_click(command["button"])
|
||||
module = self.modules.get_by_id(command["instance"])
|
||||
if module:
|
||||
module.on_click(command["button"])
|
||||
|
||||
def call_start_hooks(self):
|
||||
for hook in START_HOOKS:
|
||||
|
@ -51,7 +51,7 @@ class StandaloneIO(IOHandler):
|
||||
"""
|
||||
|
||||
n = -1
|
||||
proto = ('{"version":1,"bidirectional":true}', "[", "[]", ",[]",)
|
||||
proto = ('{"version":1,"click_events":true}', "[", "[]", ",[]",)
|
||||
|
||||
def __init__(self, interval=1):
|
||||
super().__init__()
|
||||
|
Loading…
Reference in New Issue
Block a user