From a6fa0ebe77df9d1750ba3d035f55282dde9dcc87 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 23 Oct 2022 14:21:47 +0100 Subject: Synchronise rendering with surface update. This fixes an issue where receiving multiple keypresses in the time taken to draw a frame could cause input to be out of sync with the display. --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 8ac0b73..2a9ce00 100644 --- a/src/main.c +++ b/src/main.c @@ -1328,6 +1328,7 @@ int main(int argc, char *argv[]) wl_display_dispatch_pending(tofi.wl_display); if (tofi.window.surface.redraw) { + entry_update(&tofi.window.entry); surface_draw(&tofi.window.surface); tofi.window.surface.redraw = false; } -- cgit v1.2.3