window: Stop using glib mainloop in toy toolkit
diff --git a/clients/window.h b/clients/window.h
index dc80123..df819bf 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -30,6 +30,11 @@
struct window;
+struct task {
+ void (*run)(struct task *task, uint32_t events);
+ struct wl_list link;
+};
+
struct rectangle {
int32_t x;
int32_t y;
@@ -99,6 +104,13 @@
display_flush_cairo_device(struct display *display);
void
+display_defer(struct display *display, struct task *task);
+
+void
+display_watch_fd(struct display *display,
+ int fd, uint32_t events, struct task *task);
+
+void
display_run(struct display *d);
enum pointer_type {