Replace commit/ack/frame protocol with simpler sync and frame callbacks
diff --git a/clients/window.h b/clients/window.h
index 1b4285f..343d536 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -38,6 +38,9 @@
struct display *
display_create(int *argc, char **argv[], const GOptionEntry *option_entries);
+struct wl_display *
+display_get_display(struct display *display);
+
struct wl_compositor *
display_get_compositor(struct display *display);
@@ -96,7 +99,6 @@
typedef void (*window_resize_handler_t)(struct window *window, void *data);
typedef void (*window_redraw_handler_t)(struct window *window, void *data);
typedef void (*window_frame_handler_t)(struct window *window, uint32_t frame, uint32_t timestamp, void *data);
-typedef void (*window_acknowledge_handler_t)(struct window *window, uint32_t key, uint32_t frame, void *data);
typedef void (*window_key_handler_t)(struct window *window, uint32_t key, uint32_t unicode,
uint32_t state, uint32_t modifiers, void *data);
typedef void (*window_keyboard_focus_handler_t)(struct window *window,
@@ -121,8 +123,6 @@
void
window_draw(struct window *window);
void
-window_commit(struct window *window, uint32_t key);
-void
window_get_child_rectangle(struct window *window,
struct rectangle *rectangle);
void
@@ -147,6 +147,9 @@
cairo_surface_t *surface);
void
+window_flush(struct window *window);
+
+void
window_set_fullscreen(struct window *window, int fullscreen);
void
@@ -168,9 +171,6 @@
void
window_set_frame_handler(struct window *window,
window_frame_handler_t handler);
-void
-window_set_acknowledge_handler(struct window *window,
- window_acknowledge_handler_t handler);
void
window_set_key_handler(struct window *window,
@@ -189,10 +189,6 @@
window_keyboard_focus_handler_t handler);
void
-window_set_acknowledge_handler(struct window *window,
- window_acknowledge_handler_t handler);
-
-void
window_set_frame_handler(struct window *window,
window_frame_handler_t handler);