aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2021-07-08 23:46:16 +0100
committerHarry Jeffery <harry@exec64.co.uk>2021-07-08 23:46:16 +0100
commit27df0fb8fedfaa3ebdada9cdf25cf82e520b27e3 (patch)
treea166306f3e118ac8781e45e4c2e9ea2717883501 /src
parentebef68aeceb6563aa7b1ce24aafa921087a68d0d (diff)
downloadimv-27df0fb8fedfaa3ebdada9cdf25cf82e520b27e3.tar.gz
Fix image skipping when reading slow filesystems
Fixes #201
Diffstat (limited to 'src')
-rw-r--r--src/wl_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wl_window.c b/src/wl_window.c
index e691d76..698d0e7 100644
--- a/src/wl_window.c
+++ b/src/wl_window.c
@@ -197,6 +197,8 @@ static void keyboard_key(void *data, struct wl_keyboard *keyboard,
push_keypress(window, key);
+ wl_display_roundtrip(window->wl_display);
+
if (imv_keyboard_should_key_repeat(window->keyboard, key)) {
/* Kick off the key-repeat timer for the current key */
window->repeat_scancode = key;