simple-timing: Use don't use the frame callback mechanism

commit-timing uses presentation feedback to drive its repaint loop, no
need to keep the frame callback.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2026-01-06 16:52:32 +02:00 committed by Derek Foreman
parent 2f5ad2f046
commit 8ba7fb8195

View file

@ -89,7 +89,6 @@ struct window {
struct xdg_surface *xdg_surface;
struct xdg_toplevel *xdg_toplevel;
struct wl_list buffer_list;
struct wl_callback *callback;
struct wp_fifo_v1 *fifo;
struct wp_commit_timer_v1 *commit_timer;
bool wait_for_configure;
@ -363,7 +362,6 @@ create_window(struct display *display, int width, int height)
if (!window)
return NULL;
window->callback = NULL;
window->display = display;
window->width = width;
window->height = height;
@ -410,9 +408,6 @@ destroy_window(struct window *window)
{
struct buffer *buffer, *buffer_next;
if (window->callback)
wl_callback_destroy(window->callback);
wl_list_for_each_safe(buffer, buffer_next,
&window->buffer_list, buffer_link)
destroy_buffer(buffer);