[PATCH xf86-video-nested 08/10] Remove expurious <default pointer> device when using nested input.

Laércio de Sousa laerciosousa at sme-mogidascruzes.sp.gov.br
Thu Nov 5 01:15:04 PST 2015


Because nestedinput is currently not recognized by Xorg as a suitable core pointer,
it will automatically add "<default pointer>", with devpath /dev/input/mice and
"mouse" driver, which may interfere with nested virtual pointer device.

Signed-off-by: Laércio de Sousa <laerciosousa at sme-mogidascruzes.sp.gov.br>
---
 src/nested_input.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/nested_input.c b/src/nested_input.c
index 1a8ba18..a874930 100644
--- a/src/nested_input.c
+++ b/src/nested_input.c
@@ -371,6 +371,13 @@ NestedInputLoadDriver(NestedClientPrivatePtr clientData) {
     // Send the device to the client so that the client can send the
     // device back to the input driver when events are being posted.
     NestedClientSetDevicePtr(clientData, dev);
+
+    /* XXX: Find a better way to make Xorg recognize nestedinput
+     *      as the first core pointer. */
+    pInfo = xf86LookupInput("<default pointer>");
+    
+    if (pInfo)
+        DeleteInputDeviceRequest(pInfo->dev);
 }
     
 void
-- 
2.1.4



More information about the xorg-devel mailing list