diff --git a/compositor b/compositor index d411939..a5700ee 100755 Binary files a/compositor and b/compositor differ diff --git a/compositor.c b/compositor.c index 030a46a..0551a85 100644 --- a/compositor.c +++ b/compositor.c @@ -29,21 +29,12 @@ static void registry_handle_global(void *data, struct wl_registry *registry, uin { struct client_state *state = data; - printf("interface: '%s', version: %d, name: %d\n", interface, version, name); - if (strcmp(interface, wl_compositor_interface.name) == 0) { state->wl_compositor = wl_registry_bind(registry, name, &wl_compositor_interface, 5); - printf("Bound to compositor!\n"); - } - - if (strcmp(interface, wl_shm_interface.name) == 0) { + } else if (strcmp(interface, wl_shm_interface.name) == 0) { state->wl_shm = wl_registry_bind(registry, name, &wl_shm_interface, 1); - printf("Bound to shm!\n"); - } - - if (strcmp(interface, xdg_wm_base_interface.name) == 0) { + } else if (strcmp(interface, xdg_wm_base_interface.name) == 0) { state->xdg_wm_base = wl_registry_bind(registry, name, &xdg_wm_base_interface, 4); - printf("Bound to wm_base!\n"); } } @@ -55,8 +46,6 @@ static void registry_handle_global_remove(void *data, struct wl_registry *regist static void shm_handle_format(void *data, struct wl_shm *wl_shm, uint32_t format) { struct client_state *state = data; - - printf("shm_handle_format: supported format is [%d]\n", format); } static void wm_base_handle_ping(void *data, struct xdg_wm_base *xdg_wm_base, uint32_t serial)