Revert "Merge branch 'partial-update-on-input'"

This reverts commit a2cc828e58, reversing
changes made to 87f185e62b.
This commit is contained in:
Tobias Witek 2019-01-26 19:40:08 +01:00
parent a2cc828e58
commit 47eeac00a0
4 changed files with 30 additions and 64 deletions

View file

@ -45,7 +45,6 @@ def read_input(inp):
try:
event = json.loads(line)
if "instance" in event:
inp.event = event
inp.callback(event)
inp.redraw()
else:
@ -67,7 +66,6 @@ class I3BarInput(object):
self.global_id = str(uuid.uuid4())
self.need_event = False
self.has_event = False
self.event = None
self._condition = threading.Condition()
def start(self):
@ -89,10 +87,6 @@ class I3BarInput(object):
def wait(self, timeout):
self._condition.wait(timeout)
rv = self.event if self.has_event else None
log.debug("received input event: {}".format(rv))
self.has_event = False
return rv
def _wait(self):
while not self.has_event: