[mutter/wayland] window-wayland: Implement kill
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] window-wayland: Implement kill
- Date: Tue, 25 Mar 2014 16:05:44 +0000 (UTC)
commit ef65848d1149866cf160452f7ae84719694dfb91
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Mar 25 12:05:21 2014 -0400
window-wayland: Implement kill
src/wayland/window-wayland.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c
index 2eaaf01..e52c143 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]