|
|
|
@ -19,7 +19,7 @@ struct wlr_output_layout_output_state {
|
|
|
|
|
bool auto_configured;
|
|
|
|
|
|
|
|
|
|
struct wl_listener enable;
|
|
|
|
|
struct wl_listener resolution;
|
|
|
|
|
struct wl_listener mode;
|
|
|
|
|
struct wl_listener scale;
|
|
|
|
|
struct wl_listener transform;
|
|
|
|
|
struct wl_listener output_destroy;
|
|
|
|
@ -49,7 +49,7 @@ static void wlr_output_layout_output_destroy(
|
|
|
|
|
struct wlr_output_layout_output *l_output) {
|
|
|
|
|
wl_signal_emit(&l_output->events.destroy, l_output);
|
|
|
|
|
wl_list_remove(&l_output->state->enable.link);
|
|
|
|
|
wl_list_remove(&l_output->state->resolution.link);
|
|
|
|
|
wl_list_remove(&l_output->state->mode.link);
|
|
|
|
|
wl_list_remove(&l_output->state->scale.link);
|
|
|
|
|
wl_list_remove(&l_output->state->transform.link);
|
|
|
|
|
wl_list_remove(&l_output->state->output_destroy.link);
|
|
|
|
@ -150,9 +150,9 @@ static void handle_output_enable(struct wl_listener *listener, void *data) {
|
|
|
|
|
wlr_output_layout_reconfigure(state->layout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void handle_output_resolution(struct wl_listener *listener, void *data) {
|
|
|
|
|
static void handle_output_mode(struct wl_listener *listener, void *data) {
|
|
|
|
|
struct wlr_output_layout_output_state *state =
|
|
|
|
|
wl_container_of(listener, state, resolution);
|
|
|
|
|
wl_container_of(listener, state, mode);
|
|
|
|
|
wlr_output_layout_reconfigure(state->layout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -196,8 +196,8 @@ static struct wlr_output_layout_output *wlr_output_layout_output_create(
|
|
|
|
|
|
|
|
|
|
wl_signal_add(&output->events.enable, &l_output->state->enable);
|
|
|
|
|
l_output->state->enable.notify = handle_output_enable;
|
|
|
|
|
wl_signal_add(&output->events.resolution, &l_output->state->resolution);
|
|
|
|
|
l_output->state->resolution.notify = handle_output_resolution;
|
|
|
|
|
wl_signal_add(&output->events.mode, &l_output->state->mode);
|
|
|
|
|
l_output->state->mode.notify = handle_output_mode;
|
|
|
|
|
wl_signal_add(&output->events.scale, &l_output->state->scale);
|
|
|
|
|
l_output->state->scale.notify = handle_output_scale;
|
|
|
|
|
wl_signal_add(&output->events.transform, &l_output->state->transform);
|
|
|
|
|