Add a output_created_signal on weston_compositor

Richard Hughes 12 years ago committed by Kristian Høgsberg
parent 64ddde1e70
commit 59d5da79be
  1. 2
      src/compositor.c
  2. 1
      src/compositor.h

@ -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;

@ -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;

Loading…
Cancel
Save