Emit add event after configuring wlr_output_layout_output

This commit is contained in:
emersion 2017-10-31 11:12:05 +01:00
parent ae9a46fc9b
commit ca9dfd2e14
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,6 @@ static struct wlr_output_layout_output *wlr_output_layout_output_create(
wl_signal_add(&output->events.destroy, &l_output->state->output_destroy);
l_output->state->output_destroy.notify = handle_output_destroy;
wl_signal_emit(&layout->events.add, l_output);
return l_output;
}
@ -185,6 +183,7 @@ void wlr_output_layout_add(struct wlr_output_layout *layout,
l_output->y = y;
l_output->state->auto_configured = false;
wlr_output_layout_reconfigure(layout);
wl_signal_emit(&layout->events.add, l_output);
}
struct wlr_output_layout_output *wlr_output_layout_get(
@ -367,6 +366,7 @@ void wlr_output_layout_add_auto(struct wlr_output_layout *layout,
l_output->state->auto_configured = true;
wlr_output_layout_reconfigure(layout);
wl_signal_emit(&layout->events.add, l_output);
}
struct wlr_output *wlr_output_layout_get_center_output(