summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input.c1
-rw-r--r--src/main.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index 2099863..0f69a05 100644
--- a/src/input.c
+++ b/src/input.c
@@ -86,7 +86,6 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
return;
}
- entry_update(&tofi->window.entry);
tofi->window.surface.redraw = true;
}
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;
}