backend/wayland: remove wl_shm

We bind to it but never use it.
This commit is contained in:
Simon Ser 2019-05-06 19:08:30 +03:00
parent 292d20e4c1
commit 947d5ff481
2 changed files with 0 additions and 7 deletions

View File

@ -70,9 +70,6 @@ static void registry_global(void *data, struct wl_registry *registry,
wl->seat = wl_registry_bind(registry, name,
&wl_seat_interface, 5);
wl_seat_add_listener(wl->seat, &seat_listener, wl);
} else if (strcmp(iface, wl_shm_interface.name) == 0) {
wl->shm = wl_registry_bind(registry, name,
&wl_shm_interface, 1);
} else if (strcmp(iface, xdg_wm_base_interface.name) == 0) {
wl->xdg_wm_base = wl_registry_bind(registry, name,
&xdg_wm_base_interface, 1);
@ -149,9 +146,6 @@ static void backend_destroy(struct wlr_backend *backend) {
if (wl->seat) {
wl_seat_destroy(wl->seat);
}
if (wl->shm) {
wl_shm_destroy(wl->shm);
}
if (wl->zxdg_decoration_manager_v1) {
zxdg_decoration_manager_v1_destroy(wl->zxdg_decoration_manager_v1);
}

View File

@ -33,7 +33,6 @@ struct wlr_wl_backend {
struct wl_compositor *compositor;
struct xdg_wm_base *xdg_wm_base;
struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1;
struct wl_shm *shm;
struct wl_seat *seat;
struct wl_pointer *pointer;
struct wl_keyboard *keyboard;