|
|
@ -131,14 +131,11 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
|
|
|
|
sway_surface->destroy.notify = handle_destroy;
|
|
|
|
sway_surface->destroy.notify = handle_destroy;
|
|
|
|
wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);
|
|
|
|
wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: actual focus semantics
|
|
|
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
|
|
|
swayc_t *parent = root_container.children->items[0];
|
|
|
|
swayc_t *focus = sway_seat_get_focus_inactive(seat, &root_container);
|
|
|
|
parent = parent->children->items[0]; // workspace
|
|
|
|
swayc_t *cont = new_view(focus, sway_view);
|
|
|
|
|
|
|
|
|
|
|
|
swayc_t *cont = new_view(parent, sway_view);
|
|
|
|
|
|
|
|
sway_view->swayc = cont;
|
|
|
|
sway_view->swayc = cont;
|
|
|
|
|
|
|
|
|
|
|
|
arrange_windows(cont->parent, -1, -1);
|
|
|
|
arrange_windows(cont->parent, -1, -1);
|
|
|
|
|
|
|
|
|
|
|
|
sway_input_manager_set_focus(input_manager, cont);
|
|
|
|
sway_input_manager_set_focus(input_manager, cont);
|
|
|
|
}
|
|
|
|
}
|
|
|
|