[PATCH] wayland: sanity check for client dying abnormally
Tiago Vignatti
tiago.vignatti at intel.com
Mon Aug 1 07:31:44 PDT 2011
If the client dies in a middle of a drag offered, then the server has to
flawless keep running. This particular case avoids the current dnd
client to crash the compositor.
Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
wayland/wayland-server.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/wayland/wayland-server.c b/wayland/wayland-server.c
index b16e9b4..395f3b1 100644
--- a/wayland/wayland-server.c
+++ b/wayland/wayland-server.c
@@ -452,6 +452,9 @@ wl_input_device_end_grab(struct wl_input_device *device, uint32_t time)
{
const struct wl_grab_interface *interface;
+ if (!device->grab)
+ return;
+
interface = device->grab->interface;
interface->end(device->grab, time);
device->grab = NULL;
--
1.7.2.2
More information about the wayland-devel
mailing list