b390ba2
From 41da426ebe0d8dc0734ff9dc5bcbfac9d9bd97b9 Mon Sep 17 00:00:00 2001
b390ba2
From: Peter Hutterer <peter.hutterer@who-t.net>
b390ba2
Date: Thu, 9 Apr 2009 10:12:27 +1000
b390ba2
Subject: [PATCH] xfree86: restore default off for DontZap
b390ba2
b390ba2
Zapping is triggered by xkb nowawdays, so make a note in the man page that
b390ba2
it's the Terminate_Server action. Since it's XKB, the correct way of disabling
b390ba2
it is through xkb rulesets.
b390ba2
b390ba2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
b390ba2
---
b390ba2
 doc/Xserver.man.pre                  |    2 +-
b390ba2
 hw/xfree86/common/xf86Config.c       |    5 ++---
b390ba2
 hw/xfree86/doc/man/xorg.conf.man.pre |   11 +++++------
b390ba2
 3 files changed, 8 insertions(+), 10 deletions(-)
b390ba2
b390ba2
diff --git a/doc/Xserver.man.pre b/doc/Xserver.man.pre
b390ba2
index 8897e1a..dd81223 100644
b390ba2
--- a/doc/Xserver.man.pre
b390ba2
+++ b/doc/Xserver.man.pre
b390ba2
@@ -223,7 +223,7 @@ turns on auto-repeat.
b390ba2
 starts the stipple with the classic stipple and cursor visible.  The default
b390ba2
 is to start with a black root window, and to suppress display of the cursor
b390ba2
 until the first time an application calls XDefineCursor().  For the Xorg
b390ba2
-server, this also changes the default for the DontZap option to FALSE.  For
b390ba2
+server, this also sets the default for the DontZap option to FALSE.  For
b390ba2
 kdrive servers, this implies -zap.
b390ba2
 .TP 8
b390ba2
 .B \-s \fIminutes\fP
b390ba2
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
b390ba2
index 17223a1..54c835d 100644
b390ba2
--- a/hw/xfree86/common/xf86Config.c
b390ba2
+++ b/hw/xfree86/common/xf86Config.c
b390ba2
@@ -733,7 +733,7 @@ static OptionInfoRec FlagOptions[] = {
b390ba2
   { FLAG_DONTVTSWITCH,		"DontVTSwitch",			OPTV_BOOLEAN,
b390ba2
 	{0}, FALSE },
b390ba2
   { FLAG_DONTZAP,		"DontZap",			OPTV_BOOLEAN,
b390ba2
-	{0}, TRUE },
b390ba2
+	{0}, FALSE },
b390ba2
   { FLAG_DONTZOOM,		"DontZoom",			OPTV_BOOLEAN,
b390ba2
 	{0}, FALSE },
b390ba2
   { FLAG_DISABLEVIDMODE,	"DisableVidModeExtension",	OPTV_BOOLEAN,
b390ba2
@@ -845,8 +845,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
b390ba2
 
b390ba2
     xf86GetOptValBool(FlagOptions, FLAG_NOTRAPSIGNALS, &xf86Info.notrapSignals);
b390ba2
     xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch);
b390ba2
-    if (!xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap))
b390ba2
-        xf86Info.dontZap = !party_like_its_1989;
b390ba2
+    xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap);
b390ba2
     xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom);
b390ba2
 
b390ba2
     xf86GetOptValBool(FlagOptions, FLAG_IGNORE_ABI, &xf86Info.ignoreABI);
b390ba2
diff --git a/hw/xfree86/doc/man/xorg.conf.man.pre b/hw/xfree86/doc/man/xorg.conf.man.pre
b390ba2
index d45c3b8..a0230cd 100644
b390ba2
--- a/hw/xfree86/doc/man/xorg.conf.man.pre
b390ba2
+++ b/hw/xfree86/doc/man/xorg.conf.man.pre
b390ba2
@@ -464,12 +464,11 @@ Default: off.
b390ba2
 .TP 7
b390ba2
 .BI "Option \*qDontZap\*q  \*q" boolean \*q
b390ba2
 This disallows the use of the
b390ba2
-.B Ctrl+Alt+Backspace
b390ba2
-sequence.
b390ba2
-That sequence is normally used to terminate the __xservername__ server.
b390ba2
-When this option is enabled (as per default), that key sequence has no
b390ba2
-special meaning.
b390ba2
-Default: on.
b390ba2
+.B Terminate_Server
b390ba2
+XKB action (usually on Ctrl+Alt+Backspace, depending on XKB options).
b390ba2
+This action is normally used to terminate the __xservername__ server.
b390ba2
+When this option is enabled, the action has no effect.
b390ba2
+Default: off.
b390ba2
 .TP 7
b390ba2
 .BI "Option \*qDontZoom\*q  \*q" boolean \*q
b390ba2
 This disallows the use of the
b390ba2
-- 
b390ba2
1.6.2.2.447.g4afa7
b390ba2