parent
d9df96adcb
commit
b377a93e49
2 changed files with 3 additions and 0 deletions
|
@ -269,8 +269,10 @@ class Engine(object):
|
||||||
interval = float(self._config.get("interval", 1))
|
interval = float(self._config.get("interval", 1))
|
||||||
while self.running():
|
while self.running():
|
||||||
if event and time.time() - last_full < interval:
|
if event and time.time() - last_full < interval:
|
||||||
|
log.debug("partial output update ({} {} {})".format(event, time.time(), last_full))
|
||||||
self.patch_output(event)
|
self.patch_output(event)
|
||||||
else:
|
else:
|
||||||
|
log.debug("full update: {} {} ({})".format(time.time(), last_full, time.time() - last_full))
|
||||||
last_full = time.time()
|
last_full = time.time()
|
||||||
self.write_output()
|
self.write_output()
|
||||||
if self.running():
|
if self.running():
|
||||||
|
|
|
@ -90,6 +90,7 @@ class I3BarInput(object):
|
||||||
def wait(self, timeout):
|
def wait(self, timeout):
|
||||||
self._condition.wait(timeout)
|
self._condition.wait(timeout)
|
||||||
rv = self.event if self.has_event else None
|
rv = self.event if self.has_event else None
|
||||||
|
log.debug("received input event: {}".format(rv))
|
||||||
self.has_event = False
|
self.has_event = False
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue