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