mirror of
https://github.com/NickHu/sway
synced 2024-12-25 21:58:16 +01:00
view: drop ext_foreign_destroy
It's not used and causes a crash when a view is destroyed.
This commit is contained in:
parent
09c360d503
commit
7a2ff7ba81
2 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue