diff options
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index ca56a9c0..04d89015 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c | |||
@@ -135,7 +135,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
135 | wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy); | 135 | wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy); |
136 | 136 | ||
137 | struct sway_seat *seat = input_manager_current_seat(input_manager); | 137 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
138 | swayc_t *cont = new_view(seat->focus, sway_view); | 138 | swayc_t *focus = sway_seat_get_focus(seat, &root_container); |
139 | swayc_t *cont = new_view(focus, sway_view); | ||
139 | sway_view->swayc = cont; | 140 | sway_view->swayc = cont; |
140 | 141 | ||
141 | arrange_windows(cont->parent, -1, -1); | 142 | arrange_windows(cont->parent, -1, -1); |