mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
c2e81cd4b2
commit
304ee33fd6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue