wlr_tablet_v2: fix destroy listener name

master
Isaac Freund 9 months ago
parent b821be5749
commit 2a897af7dc
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

@ -59,7 +59,7 @@ struct wlr_tablet_v2_tablet {
struct wlr_input_device *wlr_device; struct wlr_input_device *wlr_device;
struct wl_list clients; // wlr_tablet_client_v2.tablet_link 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; 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) { static void handle_wlr_tablet_destroy(struct wl_listener *listener, void *data) {
struct wlr_tablet_v2_tablet *tablet = 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 *pos;
struct wlr_tablet_client_v2 *tmp; 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->clients);
wl_list_remove(&tablet->link); wl_list_remove(&tablet->link);
wl_list_remove(&tablet->tool_destroy.link); wl_list_remove(&tablet->tablet_destroy.link);
free(tablet); free(tablet);
} }
@ -67,8 +67,8 @@ struct wlr_tablet_v2_tablet *wlr_tablet_create(
wl_list_init(&tablet->clients); wl_list_init(&tablet->clients);
tablet->tool_destroy.notify = handle_wlr_tablet_destroy; tablet->tablet_destroy.notify = handle_wlr_tablet_destroy;
wl_signal_add(&wlr_device->events.destroy, &tablet->tool_destroy); wl_signal_add(&wlr_device->events.destroy, &tablet->tablet_destroy);
wl_list_insert(&seat->tablets, &tablet->link); wl_list_insert(&seat->tablets, &tablet->link);
// We need to create a tablet client for all clients on the seat // We need to create a tablet client for all clients on the seat

Loading…
Cancel
Save