Revert "Merge branch 'partial-update-on-input'"
This reverts commita2cc828e58
, reversing changes made to87f185e62b
.
This commit is contained in:
parent
a2cc828e58
commit
47eeac00a0
4 changed files with 30 additions and 64 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue