[PATCH 2/4] Add a output_created_signal on weston_compositor
Richard Hughes
hughsient at gmail.com
Wed May 1 13:52:11 PDT 2013
---
src/compositor.c | 2 ++
src/compositor.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/compositor.c b/src/compositor.c
index 0214eed..c1acd50 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3076,6 +3076,7 @@ weston_output_init(struct weston_output *output, struct weston_compositor *c,
output->global =
wl_display_add_global(c->wl_display, &wl_output_interface,
output, bind_output);
+ wl_signal_emit(&c->output_created_signal, output);
}
static void
@@ -3154,6 +3155,7 @@ weston_compositor_init(struct weston_compositor *ec,
wl_signal_init(&ec->show_input_panel_signal);
wl_signal_init(&ec->hide_input_panel_signal);
wl_signal_init(&ec->seat_created_signal);
+ wl_signal_init(&ec->output_created_signal);
ec->launcher_sock = weston_environment_get_fd("WESTON_LAUNCHER_SOCK");
ec->output_id_pool = 0;
diff --git a/src/compositor.h b/src/compositor.h
index 3b08f29..ce63fc2 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -313,6 +313,7 @@ struct weston_compositor {
struct wl_signal hide_input_panel_signal;
struct wl_signal seat_created_signal;
+ struct wl_signal output_created_signal;
struct wl_event_loop *input_loop;
struct wl_event_source *input_loop_source;
--
1.8.2.1
More information about the wayland-devel
mailing list