Emit add event after configuring wlr_output_layout_output

master
emersion 7 years ago
parent ae9a46fc9b
commit ca9dfd2e14
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -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); wl_signal_add(&output->events.destroy, &l_output->state->output_destroy);
l_output->state->output_destroy.notify = handle_output_destroy; l_output->state->output_destroy.notify = handle_output_destroy;
wl_signal_emit(&layout->events.add, l_output);
return 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->y = y;
l_output->state->auto_configured = false; l_output->state->auto_configured = false;
wlr_output_layout_reconfigure(layout); wlr_output_layout_reconfigure(layout);
wl_signal_emit(&layout->events.add, l_output);
} }
struct wlr_output_layout_output *wlr_output_layout_get( 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; l_output->state->auto_configured = true;
wlr_output_layout_reconfigure(layout); wlr_output_layout_reconfigure(layout);
wl_signal_emit(&layout->events.add, l_output);
} }
struct wlr_output *wlr_output_layout_get_center_output( struct wlr_output *wlr_output_layout_get_center_output(

Loading…
Cancel
Save