aboutsummaryrefslogtreecommitdiff
path: root/libgui/gui.c
diff options
context:
space:
mode:
authorMarvin Borner2020-10-31 20:42:35 +0100
committerMarvin Borner2020-10-31 20:42:35 +0100
commit66779122ad298b27315b435339ca83960c6c2d41 (patch)
treebbeebd1f7503ff7efad239c553a0870d6344e10c /libgui/gui.c
parent72010e198d1a5841b27a42e50a58a86142eb5cd7 (diff)
Some performance improvements
Diffstat (limited to 'libgui/gui.c')
-rw-r--r--libgui/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgui/gui.c b/libgui/gui.c
index 72de970..399192f 100644
--- a/libgui/gui.c
+++ b/libgui/gui.c
@@ -277,7 +277,7 @@ void gui_event_loop(struct element *container)
s[l + 1] = '\0';
gui_sync_text_input(focused);
merge_elements(get_root(focused->window_id));
- gfx_redraw();
+ gfx_redraw_focused(); // Only redraw window
}
if (focused && focused->event.on_key && event->ch) {