[PATCH] xfree86: Only switch to original VT if it is active.

Michal Srb msrb at suse.com
Tue Oct 16 07:31:09 UTC 2018


On pátek 12. října 2018 16:18:11 CEST Adam Jackson wrote:
> On Thu, 2018-10-11 at 16:45 +0200, Michal Srb wrote:
> > If the X server is terminated while its VT is not active, it should
> > not change the current VT.
> > ---
> > Changing the VT in that situation serves no purpose and can be confusing.
> > For example when a user's graphical session is terminated while other
> > user is using the computer, it would switch the VT he is working on.
> 
> Conceptual ack. Would slightly prefer to see this done by
> VT_GETSTATE/VT_GETACTIVE ioctl (depending which OS you're on). It
> should be simpler, and also...

Ok, thank you for your response, that will indeed be simpler.

The VT_GETACTIVE seems to be on BSD while VT_GETSTATE is on Linux. The code 
doing the switching back to original VT is only in Linux part, so only that 
one needs to be modified.

I'll send version 2.

Michal




More information about the xorg-devel mailing list