On Thu, Apr 12, 2012 at 04:00:56PM +0100, Daniel Stone wrote: > Hi, > > On 12 April 2012 07:08, Peter Hutterer <[email protected]> wrote: > > bit of a hack, we could store this in the device struct but this approach is > > sufficient. > > > > Note that this only affects xfree86 devices, virtual devices (master > > devices) are enabled anyway. > > Can't we add devices while switched away, in which case the result > will be random? Seems like a DeviceIntRec::wasExplicitlyDisabled would > be a better approach.
The sequence of would be vt switch in, re-enabling devices as above, and then we would see the device removal/addition events from udev. But yes, a struct field is the more sensible solution, I just tried to get the cheap hack in. my fault. Cheers, Peter _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
