forked from RepoMirrors/bemenu
Cleanup all resources used by wayland renderer.
This commit is contained in:
parent
b391bbe608
commit
64c4bbdf98
@ -260,6 +260,9 @@ bm_wl_registry_destroy(struct wayland *wayland)
|
||||
|
||||
if (wayland->registry)
|
||||
wl_registry_destroy(wayland->registry);
|
||||
|
||||
xkb_keymap_unref(wayland->input.xkb.keymap);
|
||||
xkb_state_unref(wayland->input.xkb.state);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -131,6 +131,8 @@ destructor(struct bm_menu *menu)
|
||||
bm_wl_window_destroy(&wayland->window);
|
||||
bm_wl_registry_destroy(wayland);
|
||||
|
||||
xkb_context_unref(wayland->input.xkb.context);
|
||||
|
||||
if (wayland->display) {
|
||||
wl_display_flush(wayland->display);
|
||||
wl_display_disconnect(wayland->display);
|
||||
|
Loading…
Reference in New Issue
Block a user