For now it's being emitted only on the desktop shell kill binding.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
ec->wl_display = display;
wl_signal_init(&ec->destroy_signal);
wl_signal_init(&ec->activate_signal);
+ wl_signal_init(&ec->kill_signal);
wl_signal_init(&ec->lock_signal);
wl_signal_init(&ec->unlock_signal);
wl_signal_init(&ec->show_input_panel_signal);
struct weston_shell_interface shell_interface;
struct wl_signal activate_signal;
+ struct wl_signal kill_signal;
struct wl_signal lock_signal;
struct wl_signal unlock_signal;
{
struct wl_surface *focus_surface;
struct wl_client *client;
+ struct desktop_shell *shell = data;
+ struct weston_compositor *compositor = shell->compositor;
pid_t pid;
focus_surface = seat->keyboard->focus;
if (!focus_surface)
return;
+ wl_signal_emit(&compositor->kill_signal, focus_surface);
+
client = focus_surface->resource.client;
wl_client_get_credentials(client, &pid, NULL, NULL);