summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-10-23 14:21:47 +0100
committerPhil Jones <philj56@gmail.com>2022-10-23 14:23:18 +0100
commita6fa0ebe77df9d1750ba3d035f55282dde9dcc87 (patch)
treecef4e092f82ed5b6409cadd9f9eb5783dfce989c /src/main.c
parent3bbd8ff839354a6f488c8481d5e6336a3f637cee (diff)
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
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;
}