mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
wlr_tablet_v2: fix destroy listener name
This commit is contained in:
parent
b821be5749
commit
2a897af7dc
2 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ struct wlr_tablet_v2_tablet {
|
|||
struct wlr_input_device *wlr_device;
|
||||
struct wl_list clients; // wlr_tablet_client_v2.tablet_link
|
||||
|
||||
struct wl_listener tool_destroy;
|
||||
struct wl_listener tablet_destroy;
|
||||
|
||||
struct wlr_tablet_client_v2 *current_client;
|
||||
};
|
||||
|
|
|
@ -33,7 +33,7 @@ static const struct zwp_tablet_v2_interface tablet_impl = {
|
|||
|
||||
static void handle_wlr_tablet_destroy(struct wl_listener *listener, void *data) {
|
||||
struct wlr_tablet_v2_tablet *tablet =
|
||||
wl_container_of(listener, tablet, tool_destroy);
|
||||
wl_container_of(listener, tablet, tablet_destroy);
|
||||
|
||||
struct wlr_tablet_client_v2 *pos;
|
||||
struct wlr_tablet_client_v2 *tmp;
|
||||
|
@ -43,7 +43,7 @@ static void handle_wlr_tablet_destroy(struct wl_listener *listener, void *data)
|
|||
|
||||
wl_list_remove(&tablet->clients);
|
||||
wl_list_remove(&tablet->link);
|
||||
wl_list_remove(&tablet->tool_destroy.link);
|
||||
wl_list_remove(&tablet->tablet_destroy.link);
|
||||
free(tablet);
|
||||
}
|
||||
|
||||
|
@ -67,8 +67,8 @@ struct wlr_tablet_v2_tablet *wlr_tablet_create(
|
|||
wl_list_init(&tablet->clients);
|
||||
|
||||
|
||||
tablet->tool_destroy.notify = handle_wlr_tablet_destroy;
|
||||
wl_signal_add(&wlr_device->events.destroy, &tablet->tool_destroy);
|
||||
tablet->tablet_destroy.notify = handle_wlr_tablet_destroy;
|
||||
wl_signal_add(&wlr_device->events.destroy, &tablet->tablet_destroy);
|
||||
wl_list_insert(&seat->tablets, &tablet->link);
|
||||
|
||||
// We need to create a tablet client for all clients on the seat
|
||||
|
|
Loading…
Reference in a new issue