[PATCH] xfree86: after VT switching back, only enable previously enabled devices

Peter Hutterer peter.hutterer at who-t.net
Thu Apr 12 15:26:06 PDT 2012


On Thu, Apr 12, 2012 at 04:00:56PM +0100, Daniel Stone wrote:
> Hi,
> 
> On 12 April 2012 07:08, Peter Hutterer <peter.hutterer at who-t.net> 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


More information about the xorg-devel mailing list