view: drop ext_foreign_destroy

It's not used and causes a crash when a view is destroyed.
This commit is contained in:
Kirill Primak 2024-02-12 19:16:49 +03:00 committed by Simon Ser
parent 09c360d503
commit 7a2ff7ba81
2 changed files with 0 additions and 3 deletions

View file

@ -85,7 +85,6 @@ struct sway_view {
struct wlr_box geometry; struct wlr_box geometry;
struct wlr_ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel; 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 wlr_foreign_toplevel_handle_v1 *foreign_toplevel;
struct wl_listener foreign_activate_request; struct wl_listener foreign_activate_request;

View file

@ -765,8 +765,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
}; };
view->ext_foreign_toplevel = view->ext_foreign_toplevel =
wlr_ext_foreign_toplevel_handle_v1_create(server.foreign_toplevel_list, &foreign_toplevel_state); 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 = view->foreign_toplevel =
wlr_foreign_toplevel_handle_v1_create(server.foreign_toplevel_manager); wlr_foreign_toplevel_handle_v1_create(server.foreign_toplevel_manager);