aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 25ffacbb..6b50d470 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -83,7 +83,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
83 wl_container_of(listener, sway_xdg_surface, destroy); 83 wl_container_of(listener, sway_xdg_surface, destroy);
84 wl_list_remove(&sway_xdg_surface->commit.link); 84 wl_list_remove(&sway_xdg_surface->commit.link);
85 wl_list_remove(&sway_xdg_surface->destroy.link); 85 wl_list_remove(&sway_xdg_surface->destroy.link);
86 swayc_t *parent = destroy_view(sway_xdg_surface->view->swayc); 86 struct sway_container *parent = sway_container_view_destroy(sway_xdg_surface->view->swayc);
87 free(sway_xdg_surface->view); 87 free(sway_xdg_surface->view);
88 free(sway_xdg_surface); 88 free(sway_xdg_surface);
89 arrange_windows(parent, -1, -1); 89 arrange_windows(parent, -1, -1);
@@ -136,8 +136,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
136 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy); 136 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);
137 137
138 struct sway_seat *seat = input_manager_current_seat(input_manager); 138 struct sway_seat *seat = input_manager_current_seat(input_manager);
139 swayc_t *focus = sway_seat_get_focus_inactive(seat, &root_container); 139 struct sway_container *focus = sway_seat_get_focus_inactive(seat, &root_container);
140 swayc_t *cont = new_view(focus, sway_view); 140 struct sway_container *cont = sway_container_view_create(focus, sway_view);
141 sway_view->swayc = cont; 141 sway_view->swayc = cont;
142 142
143 arrange_windows(cont->parent, -1, -1); 143 arrange_windows(cont->parent, -1, -1);