From 304ee33fd65dca61102af0a515f90292cfda3826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 29 Nov 2019 22:09:56 +0100 Subject: [PATCH] wayland: always flush after dispatching messages This means we don't have to e.g. roundtrip when setting the cursor. --- wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayland.c b/wayland.c index 1a5cc5f9..60b4f80d 100644 --- a/wayland.c +++ b/wayland.c @@ -456,6 +456,7 @@ fdm_wayl(struct fdm *fdm, int fd, int events, void *data) return false; } + wl_display_flush(wayl->display); return event_count != -1; } @@ -828,7 +829,6 @@ wayl_cursor_set(struct wayland *wayl, const struct terminal *term) wl_surface_set_buffer_scale(wayl->pointer.surface, scale); wl_surface_commit(wayl->pointer.surface); - wl_display_roundtrip(wayl->display); return true; }