diff options
Diffstat (limited to 'src/wlclock.c')
-rw-r--r-- | src/wlclock.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/wlclock.c b/src/wlclock.c index fefc480..bc88ca4 100644 --- a/src/wlclock.c +++ b/src/wlclock.c @@ -188,14 +188,12 @@ static bool init_wayland (void) /* Get registry and add listeners. */ clocklog(2, "[main] Get wl_registry.\n"); - if ( NULL == (context.registry = wl_display_get_registry(context.display)) ) - { - clocklog(0, "ERROR: Can not get registry.\n"); - return false; - } + context.registry = wl_display_get_registry(context.display); + wl_registry_add_listener(context.registry, ®istry_listener, NULL); /* Allow registry listeners to catch up. */ + // TODO use sync instead if ( wl_display_roundtrip(context.display) == -1 ) { clocklog(0, "ERROR: Roundtrip failed.\n"); |