mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-14 09:25:57 +01:00
wayland input_device_destroy: add missing braces
This commit is contained in:
parent
4bbf718e7d
commit
e922e62924
1 changed files with 2 additions and 1 deletions
|
@ -169,8 +169,9 @@ static struct wl_keyboard_listener keyboard_listener = {
|
||||||
static void input_device_destroy(struct wlr_input_device *_dev) {
|
static void input_device_destroy(struct wlr_input_device *_dev) {
|
||||||
struct wlr_wl_input_device *dev = (struct wlr_wl_input_device *)_dev;
|
struct wlr_wl_input_device *dev = (struct wlr_wl_input_device *)_dev;
|
||||||
wl_signal_emit(&dev->backend->backend.events.input_remove, &dev->wlr_input_device);
|
wl_signal_emit(&dev->backend->backend.events.input_remove, &dev->wlr_input_device);
|
||||||
if (dev->resource)
|
if (dev->resource) {
|
||||||
wl_proxy_destroy(dev->resource);
|
wl_proxy_destroy(dev->resource);
|
||||||
|
}
|
||||||
free(dev);
|
free(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue