aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2024-02-12 19:16:49 +0300
committerSimon Ser <contact@emersion.fr>2024-02-12 19:05:13 +0100
commit7a2ff7ba810ced55297a1a2e420b0b1f4326ab72 (patch)
treee3f81b9ae40b763ebe1f034a4097e6eca3992959
parent09c360d503eb7309de46af3745001df7dd911438 (diff)
view: drop ext_foreign_destroy
It's not used and causes a crash when a view is destroyed.
-rw-r--r--include/sway/tree/view.h1
-rw-r--r--sway/tree/view.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 8f3626fd..8bfda018 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -85,7 +85,6 @@ struct sway_view {
struct wlr_box geometry;
struct wlr_ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel;
- struct wl_listener ext_foreign_destroy;
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel;
struct wl_listener foreign_activate_request;
diff --git a/sway/tree/view.c b/sway/tree/view.c
index aa87a0bb..a3ed0af1 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -765,8 +765,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
};
view->ext_foreign_toplevel =
wlr_ext_foreign_toplevel_handle_v1_create(server.foreign_toplevel_list, &foreign_toplevel_state);
- wl_signal_add(&view->ext_foreign_toplevel->events.destroy,
- &view->ext_foreign_destroy);
view->foreign_toplevel =
wlr_foreign_toplevel_handle_v1_create(server.foreign_toplevel_manager);