diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-09 15:40:24 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-28 16:17:16 +1000 |
commit | 737b49199a05299486064e6e762cf2a2f6f95be6 (patch) | |
tree | e173f15692b55ec0cb8436a396033f5491692b8b | |
parent | dc2767d1c5db60385867c76ba2de507fe0cb8a90 (diff) |
xfree86: restore default off for DontZap
Zapping is triggered by xkb these days, so note in the man page that it's the
Terminate_Server action. Since it's XKB, personal preferences towards or
against zapping should be achieved through xkb rulesets.
If Terminate_Server is not in the xkb actions, then we can't zap anyway and we
don't need a default of DontZap "on".
This patch restores the old meaning of DontZap - disallow zapping altogether,
regardless of XKB's current keymap.
Ideally, this patch should be accompanied by b0f64bdab00db652e in
xkeyboard-config.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | doc/Xserver.man.pre | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Config.c | 5 | ||||
-rw-r--r-- | hw/xfree86/doc/man/xorg.conf.man.pre | 11 |
3 files changed, 8 insertions, 10 deletions
diff --git a/doc/Xserver.man.pre b/doc/Xserver.man.pre index e9a3b9c7d..e2673f7be 100644 --- a/doc/Xserver.man.pre +++ b/doc/Xserver.man.pre | |||
@@ -219,7 +219,7 @@ turns on auto-repeat. | |||
219 | starts the stipple with the classic stipple and cursor visible. The default | 219 | starts the stipple with the classic stipple and cursor visible. The default |
220 | is to start with a black root window, and to suppress display of the cursor | 220 | is to start with a black root window, and to suppress display of the cursor |
221 | until the first time an application calls XDefineCursor(). For the Xorg | 221 | until the first time an application calls XDefineCursor(). For the Xorg |
222 | server, this also changes the default for the DontZap option to FALSE. For | 222 | server, this also sets the default for the DontZap option to FALSE. For |
223 | kdrive servers, this implies -zap. | 223 | kdrive servers, this implies -zap. |
224 | .TP 8 | 224 | .TP 8 |
225 | .B \-s \fIminutes\fP | 225 | .B \-s \fIminutes\fP |
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index 7ea6197de..8b07566be 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c | |||
@@ -726,7 +726,7 @@ static OptionInfoRec FlagOptions[] = { | |||
726 | { FLAG_DONTVTSWITCH, "DontVTSwitch", OPTV_BOOLEAN, | 726 | { FLAG_DONTVTSWITCH, "DontVTSwitch", OPTV_BOOLEAN, |
727 | {0}, FALSE }, | 727 | {0}, FALSE }, |
728 | { FLAG_DONTZAP, "DontZap", OPTV_BOOLEAN, | 728 | { FLAG_DONTZAP, "DontZap", OPTV_BOOLEAN, |
729 | {0}, TRUE }, | 729 | {0}, FALSE }, |
730 | { FLAG_DONTZOOM, "DontZoom", OPTV_BOOLEAN, | 730 | { FLAG_DONTZOOM, "DontZoom", OPTV_BOOLEAN, |
731 | {0}, FALSE }, | 731 | {0}, FALSE }, |
732 | { FLAG_DISABLEVIDMODE, "DisableVidModeExtension", OPTV_BOOLEAN, | 732 | { FLAG_DISABLEVIDMODE, "DisableVidModeExtension", OPTV_BOOLEAN, |
@@ -834,8 +834,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts) | |||
834 | 834 | ||
835 | xf86GetOptValBool(FlagOptions, FLAG_NOTRAPSIGNALS, &xf86Info.notrapSignals); | 835 | xf86GetOptValBool(FlagOptions, FLAG_NOTRAPSIGNALS, &xf86Info.notrapSignals); |
836 | xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch); | 836 | xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch); |
837 | if (!xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap)) | 837 | xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap); |
838 | xf86Info.dontZap = !party_like_its_1989; | ||
839 | xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom); | 838 | xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom); |
840 | 839 | ||
841 | xf86GetOptValBool(FlagOptions, FLAG_IGNORE_ABI, &xf86Info.ignoreABI); | 840 | xf86GetOptValBool(FlagOptions, FLAG_IGNORE_ABI, &xf86Info.ignoreABI); |
diff --git a/hw/xfree86/doc/man/xorg.conf.man.pre b/hw/xfree86/doc/man/xorg.conf.man.pre index 7349def0d..fbb2c6b73 100644 --- a/hw/xfree86/doc/man/xorg.conf.man.pre +++ b/hw/xfree86/doc/man/xorg.conf.man.pre | |||
@@ -464,12 +464,11 @@ Default: off. | |||
464 | .TP 7 | 464 | .TP 7 |
465 | .BI "Option \*qDontZap\*q \*q" boolean \*q | 465 | .BI "Option \*qDontZap\*q \*q" boolean \*q |
466 | This disallows the use of the | 466 | This disallows the use of the |
467 | .B Ctrl+Alt+Backspace | 467 | .B Terminate_Server |
468 | sequence. | 468 | XKB action (usually on Ctrl+Alt+Backspace, depending on XKB options). |
469 | That sequence is normally used to terminate the __xservername__ server. | 469 | This action is normally used to terminate the __xservername__ server. |
470 | When this option is enabled (as per default), that key sequence has no | 470 | When this option is enabled, the action has no effect. |
471 | special meaning. | 471 | Default: off. |
472 | Default: on. | ||
473 | .TP 7 | 472 | .TP 7 |
474 | .BI "Option \*qDontZoom\*q \*q" boolean \*q | 473 | .BI "Option \*qDontZoom\*q \*q" boolean \*q |
475 | This disallows the use of the | 474 | This disallows the use of the |