summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flower.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/flower.c b/flower.c
index 67fc334..3488ead 100644
--- a/flower.c
+++ b/flower.c
@@ -157,6 +157,9 @@ int main(int argc, char *argv[])
source = wl_glib_source_new(display);
g_source_attach(source, NULL);
+ /* Process connection events. */
+ wl_display_iterate(display, WL_DISPLAY_READABLE);
+
flower.compositor = wl_display_get_compositor(display);
flower.x = 512;
flower.y = 384;