ports/x11-drivers/xf86-input-fpit/files/patch-git_09_00742d9
Baptiste Daroussin 4a3e2ef22f Import few patches from upstream to allow building with newer xorg
Note that those drivers are barely maintained and might disappear in the futur

PR:		216272
Submitted by:	matthew@reztek.cz
2017-01-23 22:27:49 +00:00

28 lines
1,019 B
Text

From 00742d9a9bcd06800b2548007ea304c331875666 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon, 20 Aug 2012 10:00:57 +1000
Subject: Don't force pInfo->flags to 0 (#40870)
The server uses the flags to decide if a device comes up as attached or
floating slave. Overwriting the flag after the server has processed the
CorePointer/AlwaysCore/Floating/etc options results in the device always
coming up as floating slave. This again makes the device appear
unresponsive.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index 3c70b4a..8852d4d 100644
--- src/xf86Fpit.c
+++ src/xf86Fpit.c
@@ -527,7 +527,6 @@ static int xf86FpitAllocate(InputDriverPtr drv, InputInfoPtr pInfo)
priv->fpitOldProximity = 0;
priv->fpitIndex = 0;
priv->fpitPassive = 0;
- pInfo->flags = 0 /* XI86_NO_OPEN_ON_INIT */ ;
pInfo->device_control = xf86FpitControl;
pInfo->read_input = xf86FpitReadInput;
pInfo->control_proc = NULL;
--
cgit v0.10.2