GNOME Bugzilla – Bug 755849
evdev: Recycle device ids after devices are removed
Last modified: 2016-02-16 11:05:57 UTC
This patch fixes an issue in mutter where the ID is assumed to be lower than 255. We may reach device-id 255 quite fast if one does a lot of VT switches as we'd increase the device ID counter by N (where N is the number of input devices) for every VT switch. We could also probably change the assumptions made in mutter, but I figured it'd make sense to not constantly grow the device-id in clutter as well.
Created attachment 312396 [details] [review] evdev: Recycle device ids after devices are removed In order to not grow the device id number forever, recycle the ids whenever a device is released.
Any objections to this, or should mutter (MetaIdleMonitor to be specific) be changed to be less picky about the range of possible IDs?
Attachment 312396 [details] pushed as a102005 - evdev: Recycle device ids after devices are removed
Happened to push this by accident since it was on my relative pointer branch. I'll leave it in anyway, since it fixes real issues. Please revert if it seems like a bad idea.