diff options
author | Simon Ser <contact@emersion.fr> | 2019-05-06 19:08:30 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-05-06 20:51:57 +0300 |
commit | 947d5ff481ee65fd0a88bd870faad2578bfc5d04 (patch) | |
tree | b3fe5712ffc29626512b01db6691a5225b7f79a2 /backend | |
parent | 292d20e4c180970f0d2af9a7c44587cfba073fad (diff) | |
download | wlroots-947d5ff481ee65fd0a88bd870faad2578bfc5d04.tar.xz |
backend/wayland: remove wl_shm
We bind to it but never use it.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/backend.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 701ba79b..1abc3e8b 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -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); } |