From ef65848d1149866cf160452f7ae84719694dfb91 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 25 Mar 2014 12:05:21 -0400 Subject: [PATCH] window-wayland: Implement kill --- src/wayland/window-wayland.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c index 2eaaf017f..e52c1435e 100644 --- a/src/wayland/window-wayland.c +++ b/src/wayland/window-wayland.c @@ -92,7 +92,13 @@ meta_window_wayland_delete (MetaWindow *window, static void meta_window_wayland_kill (MetaWindow *window) { - /* TODO */ + MetaWaylandSurface *surface = window->surface; + struct wl_resource *resource = surface->resource; + + /* Send the client an unrecoverable error to kill the client. */ + wl_resource_post_error (resource, + WL_DISPLAY_ERROR_NO_MEMORY, + "User requested that we kill you. Sorry. Don't take it too personally."); } static void