Peter Hutterer
d13cb97442
ddx: add new call to purge input devices that weren't added
...
Special case for the systemd-logind case in xfree86: when we're vt-switched
away and a device is plugged in, we get a paused fd from logind. Since we
can't probe the device or do anything with it, we store that device in the
xfree86 and handle it later when we vt-switch back. The device is not added to
inputInfo.devices until that time.
When the device is removed while still vt-switched away, the the config system
never notifies the DDX. It only runs through inputInfo.devices and our device
was never added to that.
When a device is plugged in, removed, and plugged in again while vt-switched
away, we have two entries in the xfree86-specific list that refer to the same
device node, both pending for addition later. On VT switch back, the first one
(the already removed one) will be added successfully, the second one (the
still plugged-in one) fails. Since the fd is correct, the device works until
it is removed again. The removed devices' config_info (i.e. the syspath)
doesn't match the actual device we addded tough (the input number increases
with each plug), it doesn't get removed, the fd remains open and we lose track
of the fd count. Plugging the device in again leads to a dead device.
Fix this by adding a call to notify the DDX to purge any remainders of devices
with the given config_info, that's the only identifiable bit we have at this
point.
https://bugs.freedesktop.org/show_bug.cgi?id=97928
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2016-10-26 15:35:07 +10:00
..
.gitignore
busfault.h
callback.h
client.h
closestr.h
closure.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
colormap.h
dix: Unexport various implementation details
2015-07-08 16:40:57 -04:00
colormapst.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
cursor.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
cursorstr.h
cursor: drop ARGB_CURSOR
2015-06-30 12:17:51 +10:00
dbus-core.h
xfree86: drop double-typedef of DBusConnection
2014-11-12 10:25:00 +10:00
displaymode.h
vidmode: move display mode definitions
2016-02-29 16:28:57 -05:00
dix-config-apple-verbatim.h
dix-config.h.in
os: Use pthread_setname_np to set thread names if available
2016-09-13 16:55:26 -04:00
dix.h
dix: Silence TSan warnings when checking for pending input
2016-09-22 14:55:01 -07:00
dixaccess.h
dixevents.h
dixfont.h
dix: Switch to the libXfont2 API (v2)
2016-07-18 15:25:59 -04:00
dixfontstr.h
dix: Switch to the libXfont2 API (v2)
2016-07-18 15:25:59 -04:00
dixgrabs.h
dixstruct.h
os: Switch server to poll(2) [v3]
2016-07-21 15:04:47 -04:00
eventconvert.h
events.h
eventstr.h
Input: Add focus-in event source
2015-11-24 11:36:34 +10:00
exevents.h
extension.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
extinit.h
Make PseudoramiXExtensionInit() prototype more generally available
2015-03-16 16:56:17 +00:00
extnsionst.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
gc.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
gcstruct.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
globals.h
dix: Use OsSignal() not signal()
2016-06-08 11:36:31 -04:00
glx_extinit.h
hotplug.h
input.h
ddx: add new call to purge input devices that weren't added
2016-10-26 15:35:07 +10:00
inputstr.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
inpututils.h
Input: Add DeviceEventSource enum
2015-11-24 11:36:32 +10:00
kdrive-config.h.in
kdrive: Delete unused TOUCHSCREEN define.
2015-10-06 10:43:05 -04:00
list.h
Fix uninitialized variable warnings reported by clang
2016-01-06 09:42:59 -05:00
Makefile.am
include: Add 'xserver_poll.h' to Makefile.am
2016-09-16 10:57:23 -07:00
misc.h
Allow 1024 and 2048 for LimitClients
2016-07-21 15:04:47 -04:00
miscstruct.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
nonsdk_extinit.h
Make PseudoramiXExtensionInit() prototype more generally available
2015-03-16 16:56:17 +00:00
opaque.h
configurable maximum number of clients
2015-08-24 00:00:18 -07:00
optionstr.h
os.h
os: Remove CheckConnections
2016-07-21 15:04:47 -04:00
pixmap.h
prime: clean up slave bo properly. (v3)
2016-06-08 12:51:51 -04:00
pixmapstr.h
prime: add rotation support for offloaded outputs (v2)
2015-07-08 11:13:09 -07:00
privates.h
dix: Add dixPrivatesCreated helper function
2016-09-13 10:26:40 +02:00
probes.h
Get rid of const warnings in XSERVER_INPUT_EVENT dtrace probe calls
2015-02-10 18:14:44 -08:00
property.h
dix: Remove redundant ChangeWindowProperty
2015-11-30 10:24:53 -05:00
propertyst.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
protocol-versions.h
Add Windows-DRI extension
2016-09-15 20:10:29 +01:00
ptrveloc.h
region.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
regionstr.h
dix: make RegionInit legal C++
2015-01-23 10:35:49 -08:00
registry.h
XSERVER_DTRACE needs request names from registry too
2014-09-22 12:00:46 -07:00
resource.h
dix: export ResourceClientBits()
2015-09-01 20:11:26 -07:00
rgb.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
screenint.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
scrnintstr.h
dix: Incroduce CursorConfinedTo vfunc in Screen
2016-09-19 08:55:02 -07:00
selection.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
servermd.h
dix: Fix image byte order on big endian hardware
2015-05-07 14:03:50 -04:00
site.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
swaprep.h
dix: Unexport various implementation details
2015-07-08 16:40:57 -04:00
swapreq.h
dix: Unexport various implementation details
2015-07-08 16:40:57 -04:00
systemd-logind.h
validate.h
version-config.h.in
vidmodestr.h
vidmode: build without xf86vidmodeproto
2016-03-01 11:25:59 -05:00
window.h
dix: Add hybrid full-size/empty-clip mode to SetRootClip
2016-02-22 13:26:31 -05:00
windowstr.h
dix: unifdef pWin->rootlessUnhittable
2015-07-08 16:41:28 -04:00
XIstubs.h
xkb-config.h.in
xkbfile.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
xkbrules.h
xkbsrv.h
xkb: add hook to allow/deny AccessX key repeat
2016-06-03 09:39:42 +02:00
xkbstr.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
xorg-config.h.in
Allow compile-time selection of a fallback input driver
2016-06-08 13:08:32 -04:00
xorg-server.h.in
kdrive: Delete unused TOUCHSCREEN define.
2015-10-06 10:43:05 -04:00
Xprintf.h
xserver-properties.h
xserver_poll.h
os: Add poll emulation for mingw [v2]
2016-07-19 11:08:21 -07:00
xsha1.h
Drop trailing whitespaces
2014-11-12 10:25:00 +10:00
xwin-config.h.in