aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-04 22:27:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-04 22:27:59 +0000
commit4cbd894803f239af3e320aece24521aeb325cbd2 (patch)
tree9fcb7c7a73f16f77267db0954c94b1bad1d61071 /render.c
parentfdm: add hook priorities (diff)
wayland: use a low priority FDM hook to flush the wayland socket
This way, we don't have to manually insert flushes in code paths that may execute outside of a wl_display_dispatch_pending(). (Those that execute inside a wl_display_dispatch_pending() are subject to the flush performed at the end of the normal wayland FDM handler).
Diffstat (limited to 'render.c')
-rw-r--r--render.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/render.c b/render.c
index 023b904c..1bbe2853 100644
--- a/render.c
+++ b/render.c
@@ -852,7 +852,6 @@ grid_render(struct terminal *term)
}
wl_surface_commit(term->window->surface);
- wayl_flush(term->wl);
#if TIME_FRAME_RENDERING
struct timeval end_time;
@@ -1141,7 +1140,6 @@ render_xcursor_update(struct wayland *wayl, const struct terminal *term)
wl_callback_add_listener(wayl->pointer.xcursor_callback, &xcursor_listener, wayl);
wl_surface_commit(wayl->pointer.surface);
- wayl_flush(wayl);
}
static void