From d8bbc1c3d2abef313398cdf990a2eb3f3bd9fb5f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 27 Jul 2014 15:00:07 -0700 Subject: [PATCH] xwayland: Activate and enable devices in add_device() Otherwise, only devices present at startup will be activated, causing a crash when new devices are added and then used. --- hw/xwayland/xwayland-input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c index 990cb82..4c016c8 100644 --- a/hw/xwayland/xwayland-input.c +++ b/hw/xwayland/xwayland-input.c @@ -482,6 +482,9 @@ add_device(struct xwl_seat *xwl_seat, dev->type = SLAVE; dev->spriteInfo->spriteOwner = FALSE; + if (ActivateDevice(dev, TRUE) != Success || EnableDevice(dev, TRUE) != TRUE) + return NULL; + return dev; } -- 1.8.5.1