Implement -novtswitch option handling for FreeBSD.
This commit is contained in:
parent
d63d23bde8
commit
f3e347241e
|
@ -303,7 +303,7 @@ xf86OpenConsole()
|
||||||
else {
|
else {
|
||||||
/* serverGeneration != 1 */
|
/* serverGeneration != 1 */
|
||||||
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
|
#if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
|
||||||
if (!xf86Info.ShareVTs &&
|
if (!xf86Info.ShareVTs && xf86Info.autoVTSwitch &&
|
||||||
(xf86Info.consType == SYSCONS || xf86Info.consType == PCVT)) {
|
(xf86Info.consType == SYSCONS || xf86Info.consType == PCVT)) {
|
||||||
if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) {
|
if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) {
|
||||||
xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
|
xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
|
||||||
|
@ -604,7 +604,7 @@ xf86CloseConsole()
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (initialVT != -1)
|
if (xf86Info.autoVTSwitch && initialVT != -1)
|
||||||
ioctl(xf86Info.consoleFd, VT_ACTIVATE, initialVT);
|
ioctl(xf86Info.consoleFd, VT_ACTIVATE, initialVT);
|
||||||
break;
|
break;
|
||||||
#endif /* SYSCONS_SUPPORT || PCVT_SUPPORT */
|
#endif /* SYSCONS_SUPPORT || PCVT_SUPPORT */
|
||||||
|
|
Loading…
Reference in New Issue