compositor: Add create_surface_signal

This signal is emitted when a client creates a surface, not for internal
surfaces.
dev
Kristian Høgsberg 11 years ago
parent 47928d8715
commit f03a04afac
  1. 3
      src/compositor.c
  2. 1
      src/compositor.h

@ -2183,6 +2183,8 @@ compositor_create_surface(struct wl_client *client,
}
wl_resource_set_implementation(surface->resource, &surface_interface,
surface, destroy_surface);
wl_signal_emit(&ec->create_surface_signal, surface);
}
static void
@ -3613,6 +3615,7 @@ weston_compositor_init(struct weston_compositor *ec,
ec->config = config;
ec->wl_display = display;
wl_signal_init(&ec->destroy_signal);
wl_signal_init(&ec->create_surface_signal);
wl_signal_init(&ec->activate_signal);
wl_signal_init(&ec->transform_signal);
wl_signal_init(&ec->kill_signal);

@ -574,6 +574,7 @@ struct weston_compositor {
struct weston_config *config;
/* surface signals */
struct wl_signal create_surface_signal;
struct wl_signal activate_signal;
struct wl_signal transform_signal;

Loading…
Cancel
Save