//bugs.freedesktop.org/show_bug.cgi?id=2252) attachment #1791

(https://bugs.freedesktop.org/attachment.cgi?id=1791): Fix option
    dontVTSwitch under *BSD, when XKB is disabled. Patch by Matthieu Herrb
    <matthieu.herrb@laas.fr>. Approved in the 2005-01-31 Xorg
    release-wranglers phone call.
This commit is contained in:
Roland Mainz 2005-02-01 03:32:38 +00:00
parent fb9fb8ead9
commit 0917efa006

View file

@ -295,7 +295,7 @@ Bool SpecialKey(InputInfoPtr pInfo, int key, Bool down, int modifiers)
if ((ModifierSet(ControlMask | AltMask)) ||
(ModifierSet(ControlMask | AltLangMask))) {
if (VTSwitchEnabled && !xf86Info.vtSysreq) {
if (VTSwitchEnabled && !xf86Info.vtSysreq && !xf86Info.dontVTSwitch) {
switch (key) {
case KEY_F1:
case KEY_F2:
@ -321,7 +321,7 @@ Bool SpecialKey(InputInfoPtr pInfo, int key, Bool down, int modifiers)
}
}
#ifdef USE_VT_SYSREQ
if (VTSwitchEnabled && xf86Info.vtSysreq) {
if (VTSwitchEnabled && xf86Info.vtSysreq && !xf86Info.dontVTSwitch) {
switch (key) {
case KEY_F1:
case KEY_F2: