diff --git a/heart/include/hrt/hrt_output.h b/heart/include/hrt/hrt_output.h index 329e3be..ca2561c 100644 --- a/heart/include/hrt/hrt_output.h +++ b/heart/include/hrt/hrt_output.h @@ -10,7 +10,6 @@ struct hrt_output { struct wlr_output *wlr_output; struct hrt_server *server; - struct wl_list link; struct wl_listener frame; struct wl_listener destroy; diff --git a/heart/include/hrt/hrt_server.h b/heart/include/hrt/hrt_server.h index ae6e32e..feb0117 100644 --- a/heart/include/hrt/hrt_server.h +++ b/heart/include/hrt/hrt_server.h @@ -22,7 +22,6 @@ struct hrt_server { struct wlr_allocator *allocator; struct wlr_scene *scene; - struct wl_list outputs; struct wl_listener new_output; struct wlr_output_manager_v1 *output_manager; struct wlr_output_layout *output_layout; diff --git a/heart/src/output.c b/heart/src/output.c index 91bb12d..0e840a2 100644 --- a/heart/src/output.c +++ b/heart/src/output.c @@ -21,7 +21,6 @@ static void handle_frame_notify(struct wl_listener *listener, void *data) { static void handle_output_destroy(struct wl_listener *listener, void *data) { wlr_log(WLR_DEBUG, "Output destroyed"); struct hrt_output *output = wl_container_of(listener, output, destroy); - wl_list_remove(&output->link); struct hrt_server *server = output->server; server->output_callback->output_removed(output); @@ -70,7 +69,6 @@ static void handle_new_output(struct wl_listener *listener, void *data) { output->destroy.notify = handle_output_destroy; wl_signal_add(&wlr_output->events.destroy, &output->destroy); - wl_list_insert(&server->outputs, &output->link); struct wlr_output_mode *mode = wlr_output_preferred_mode(wlr_output); if (mode != NULL) { @@ -109,8 +107,6 @@ bool hrt_output_init(struct hrt_server *server, const struct hrt_output_callback server->output_manager_apply.notify = handle_output_manager_apply; server->output_manager_test.notify = handle_output_manager_test; - wl_list_init(&server->outputs); - // temporary random seed: srand(time(0)); diff --git a/lisp/bindings/hrt-bindings.lisp b/lisp/bindings/hrt-bindings.lisp index 97b5fb9..4855832 100644 --- a/lisp/bindings/hrt-bindings.lisp +++ b/lisp/bindings/hrt-bindings.lisp @@ -105,7 +105,6 @@ See themes section of man xcursor(3) to find where to find valid cursor names." (cffi:defcstruct hrt-output (wlr-output :pointer #| (:struct wlr-output) |# ) (server (:pointer (:struct hrt-server))) - (link (:struct wl-list)) (frame (:struct wl-listener)) (destroy (:struct wl-listener)) (color :float :count 4)) @@ -127,7 +126,6 @@ See themes section of man xcursor(3) to find where to find valid cursor names." (compositor :pointer #| (:struct wlr-compositor) |# ) (allocator :pointer #| (:struct wlr-allocator) |# ) (scene :pointer #| (:struct wlr-scene) |# ) - (outputs (:struct wl-list)) (new-output (:struct wl-listener)) (output-manager :pointer #| (:struct wlr-output-manager-v1) |# ) (output-layout :pointer #| (:struct wlr-output-layout) |# )