aboutsummaryrefslogtreecommitdiff
path: root/registry.c
diff options
context:
space:
mode:
Diffstat (limited to 'registry.c')
-rw-r--r--registry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/registry.c b/registry.c
index 204281d..13041b8 100644
--- a/registry.c
+++ b/registry.c
@@ -16,7 +16,9 @@ void setup_registry_and_globals(client_state* state) {
void global(void *data, struct wl_registry *wl_registry, uint32_t name, const char *interface, uint32_t version) {
client_state* state = data;
- fprintf(stderr, "iface: %s v%d\n", interface, version);
+ if (state->verbose) {
+ fprintf(stderr, "iface: %s v%d\n", interface, version);
+ }
if (!strcmp(interface, wl_compositor_interface.name)) {
state->compositor = wl_registry_bind(wl_registry, name, &wl_compositor_interface, 1);