diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-02-08 18:31:10 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-02-18 16:38:53 -0800 |
commit | a0d8a309317d1bebf1e2c1cee4b08af226871009 (patch) | |
tree | 6e6e40a48d0d962a64ce36178e2d0263e3f24c3d /clients/simple-egl.c | |
parent | 5a183329cac23d58f66de6de522b8e15e2a82f45 (diff) | |
download | weston-a0d8a309317d1bebf1e2c1cee4b08af226871009.tar.gz |
clients: Add delete handler for simple-shm / simple-egl
It seems this was forgotten in the port.
Diffstat (limited to 'clients/simple-egl.c')
-rw-r--r-- | clients/simple-egl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clients/simple-egl.c b/clients/simple-egl.c index ca1c2aab..538f45f5 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -310,6 +310,12 @@ handle_surface_focused_unset(void *data, struct xdg_surface *xdg_surface) { } +static void +handle_surface_delete(void *data, struct xdg_surface *xdg_surface) +{ + running = 0; +} + static const struct xdg_surface_listener xdg_surface_listener = { handle_surface_configure, handle_surface_request_set_maximized, @@ -318,6 +324,7 @@ static const struct xdg_surface_listener xdg_surface_listener = { handle_surface_request_unset_fullscreen, handle_surface_focused_set, handle_surface_focused_unset, + handle_surface_delete, }; static void |