mirror of https://github.com/fairyglade/ly.git
Backport: Fix clock & bigclock not updating without input
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
67fd024f6a
commit
9374d2df32
|
@ -433,8 +433,6 @@ pub fn main() !void {
|
|||
desktop.draw();
|
||||
login.draw();
|
||||
password.drawMasked(config.asterisk);
|
||||
|
||||
update = animate;
|
||||
} else {
|
||||
std.time.sleep(std.time.ns_per_ms * 10);
|
||||
update = buffer.cascade();
|
||||
|
@ -467,6 +465,8 @@ pub fn main() !void {
|
|||
|
||||
const event_error = if (timeout == -1) termbox.tb_poll_event(&event) else termbox.tb_peek_event(&event, timeout);
|
||||
|
||||
update = timeout != -1;
|
||||
|
||||
if (event_error < 0 or event.type != termbox.TB_EVENT_KEY) continue;
|
||||
|
||||
switch (event.key) {
|
||||
|
|
Loading…
Reference in New Issue