diff options
author | emersion <contact@emersion.fr> | 2017-10-31 11:12:05 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-31 12:30:57 +0100 |
commit | ca9dfd2e14fbebcf4f0ae2c56fc1df5d85d2bc4f (patch) | |
tree | 90584a3660ce90ad6e69a7b9064653586da95cc7 | |
parent | ae9a46fc9bc81051ef732a178b47017d8c2e591f (diff) |
Emit add event after configuring wlr_output_layout_output
-rw-r--r-- | types/wlr_output_layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_output_layout.c b/types/wlr_output_layout.c index 190f2733..b2bcb113 100644 --- a/types/wlr_output_layout.c +++ b/types/wlr_output_layout.c @@ -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( |