aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-08 15:56:28 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-11 20:02:21 +0000
commit4c8ecfcd4ab84d67a0677967d1fc98d5062ab6ae (patch)
tree8a87a9849f89ed10002bedd864144b3c03555924
parent45c877173577cf450f0932c6899b740cacb4254f (diff)
types/wlr_virtual_pointer_v1: remove destroy event
The destroy event from the pointer base wlr_input_device must be used
-rw-r--r--include/wlr/types/wlr_virtual_pointer_v1.h4
-rw-r--r--types/wlr_virtual_pointer_v1.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_virtual_pointer_v1.h b/include/wlr/types/wlr_virtual_pointer_v1.h
index 307d6158..656ca371 100644
--- a/include/wlr/types/wlr_virtual_pointer_v1.h
+++ b/include/wlr/types/wlr_virtual_pointer_v1.h
@@ -35,10 +35,6 @@ struct wlr_virtual_pointer_v1 {
bool axis_valid[2];
struct wl_list link;
-
- struct {
- struct wl_signal destroy; // struct wlr_virtual_pointer_v1*
- } events;
};
struct wlr_virtual_pointer_v1_new_pointer_event {
diff --git a/types/wlr_virtual_pointer_v1.c b/types/wlr_virtual_pointer_v1.c
index 21eeee60..22aa903e 100644
--- a/types/wlr_virtual_pointer_v1.c
+++ b/types/wlr_virtual_pointer_v1.c
@@ -199,8 +199,6 @@ static void virtual_pointer_destroy_resource(struct wl_resource *resource) {
return;
}
- wlr_signal_emit_safe(&pointer->events.destroy, pointer);
-
wlr_pointer_finish(&pointer->pointer);
wl_resource_set_user_data(pointer->resource, NULL);
@@ -278,7 +276,6 @@ static void virtual_pointer_manager_create_virtual_pointer_with_output(
}
virtual_pointer->resource = pointer_resource;
- wl_signal_init(&virtual_pointer->events.destroy);
wl_list_insert(&manager->virtual_pointers, &virtual_pointer->link);
wlr_signal_emit_safe(&manager->events.new_virtual_pointer, &event);