diff --git a/cagebreak.c b/cagebreak.c index c2aca0f..9ce99b8 100644 --- a/cagebreak.c +++ b/cagebreak.c @@ -678,7 +678,7 @@ main(int argc, char *argv[]) { struct cg_output *output, *output_tmp; wl_list_for_each_safe(output, output_tmp, &tmp_list, link) { wl_list_remove(&output->link); - wl_list_insert(&server.outputs, &output->link); + output_insert(&server, output); output_configure(&server, output); } server.curr_output = diff --git a/output.h b/output.h index 6212856..573c259 100644 --- a/output.h +++ b/output.h @@ -77,4 +77,6 @@ int output_get_num(const struct cg_output *output); void handle_output_gamma_control_set_gamma(struct wl_listener *listener, void *data); +void +output_insert(struct cg_server *server, struct cg_output *output); #endif