On a Linux system with the -novtswitch server option, if I regenerate the server (i.e. end one generation and start the next by disconnecting the last client) while the X virtual console (VT) is not in the foreground, it messes up the console by displaying the X screen. There is code in lnx_init.c to switch to the X VT as the server generation starts, but for some reason it is conditioned on -novtswitch _not_ being specified. This doesn't make sense; -novtswitch means that when the whole server (not just generation) shuts down, it leaves the virtual console selection alone, whereas without -novtswitch, the server would switch to the foreground whatever VT was there back when the server was started.
Created attachment 46036 [details] [review] A fix
Please send a git formatted patch against git master to xorg-devel@lists.x.org for review (per http://www.x.org/wiki/Development/Documentation/SubmittingPatches)
(In reply to comment #2) > Please send a git formatted patch against git master to xorg-devel@lists.x.org > for review (per > http://www.x.org/wiki/Development/Documentation/SubmittingPatches) Sorry, I don't have one. Nor can I make one -- I don't even know git. (I didn't mean to submit a patch, just to report the bug, in case another user was having the problem or a developer wanted to fix it).
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.