wayland: always flush after dispatching messages

This means we don't have to e.g. roundtrip when setting the cursor.
This commit is contained in:
Daniel Eklöf 2019-11-29 22:09:56 +01:00
parent c2e81cd4b2
commit 304ee33fd6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;
}