Cleanup
This commit is contained in:
15
compositor.c
15
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)
|
||||
|
||||
Reference in New Issue
Block a user