poll events while focused

more responsive
This commit is contained in:
2024-07-01 23:37:51 -04:00
parent 792ceeb1d9
commit 437a60bd5c

View File

@@ -243,7 +243,7 @@ pub fn main() !void {
const flight = flights.next(); const flight = flights.next();
const events = if (au.W.focused()) const events = if (au.W.focused())
au.wait_events_timeout(0.1) au.poll_events()
else else
au.wait_events_timeout(0.5); au.wait_events_timeout(0.5);