2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86Config.c
|
2010-01-18 14:04:02 +01:00
|
|
|
================================================================================
|
2010-03-20 03:42:15 +01:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/common/xf86Config.c
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/common/xf86Config.c
|
|
|
|
@@ -696,6 +696,7 @@
|
2009-08-04 21:52:16 +02:00
|
|
|
FLAG_NOTRAPSIGNALS,
|
|
|
|
FLAG_DONTVTSWITCH,
|
|
|
|
FLAG_DONTZAP,
|
|
|
|
+ FLAG_ZAPWARNING,
|
|
|
|
FLAG_DONTZOOM,
|
|
|
|
FLAG_DISABLEVIDMODE,
|
|
|
|
FLAG_ALLOWNONLOCAL,
|
2010-03-20 03:42:15 +01:00
|
|
|
@@ -734,6 +735,8 @@
|
2009-08-04 21:52:16 +02:00
|
|
|
{0}, FALSE },
|
|
|
|
{ FLAG_DONTZAP, "DontZap", OPTV_BOOLEAN,
|
|
|
|
{0}, FALSE },
|
|
|
|
+ { FLAG_ZAPWARNING, "ZapWarning", OPTV_BOOLEAN,
|
|
|
|
+ {0}, FALSE },
|
|
|
|
{ FLAG_DONTZOOM, "DontZoom", OPTV_BOOLEAN,
|
|
|
|
{0}, FALSE },
|
|
|
|
{ FLAG_DISABLEVIDMODE, "DisableVidModeExtension", OPTV_BOOLEAN,
|
2010-03-20 03:42:15 +01:00
|
|
|
@@ -840,6 +843,7 @@
|
2009-08-04 21:52:16 +02:00
|
|
|
xf86GetOptValBool(FlagOptions, FLAG_NOTRAPSIGNALS, &xf86Info.notrapSignals);
|
|
|
|
xf86GetOptValBool(FlagOptions, FLAG_DONTVTSWITCH, &xf86Info.dontVTSwitch);
|
|
|
|
xf86GetOptValBool(FlagOptions, FLAG_DONTZAP, &xf86Info.dontZap);
|
|
|
|
+ xf86GetOptValBool(FlagOptions, FLAG_ZAPWARNING, &xf86Info.ZapWarning);
|
|
|
|
xf86GetOptValBool(FlagOptions, FLAG_DONTZOOM, &xf86Info.dontZoom);
|
|
|
|
|
|
|
|
xf86GetOptValBool(FlagOptions, FLAG_IGNORE_ABI, &xf86Info.ignoreABI);
|
2010-03-20 03:42:15 +01:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/common/xf86Events.c
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/common/xf86Events.c
|
2010-01-18 14:04:02 +01:00
|
|
|
@@ -180,12 +180,26 @@
|
|
|
|
DebugF("ProcessActionEvent(%d,%x)\n", (int) action, arg);
|
2008-03-21 02:47:42 +01:00
|
|
|
switch (action) {
|
|
|
|
case ACTION_TERMINATE:
|
|
|
|
- if (!xf86Info.dontZap) {
|
|
|
|
+ if (xf86Info.dontZap)
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ if (xf86Info.ZapWarning) {
|
|
|
|
+ static struct timeval LastZap = { 0, 0};
|
|
|
|
+ struct timeval NewZap;
|
|
|
|
+
|
|
|
|
+ gettimeofday(&NewZap, NULL);
|
|
|
|
+
|
|
|
|
+ if ((NewZap.tv_sec - LastZap.tv_sec) >= 2) {
|
2011-07-11 12:25:51 +02:00
|
|
|
+ xf86OSRingBell(30, 1000, 50);
|
2008-03-21 02:47:42 +01:00
|
|
|
+ LastZap = NewZap;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
#ifdef XFreeXDGA
|
|
|
|
- DGAShutdown();
|
|
|
|
+ DGAShutdown();
|
|
|
|
#endif
|
|
|
|
- GiveUp(0);
|
|
|
|
- }
|
|
|
|
+ GiveUp(0);
|
|
|
|
break;
|
|
|
|
case ACTION_NEXT_MODE:
|
|
|
|
if (!xf86Info.dontZoom)
|
2010-03-20 03:42:15 +01:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/common/xf86Globals.c
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/common/xf86Globals.c
|
2010-01-18 14:04:02 +01:00
|
|
|
@@ -109,6 +109,7 @@
|
|
|
|
#endif
|
2009-03-02 01:19:45 +01:00
|
|
|
.dontVTSwitch = FALSE,
|
|
|
|
.dontZap = FALSE,
|
2009-10-12 12:15:18 +02:00
|
|
|
+ .ZapWarning = TRUE,
|
2009-03-02 01:19:45 +01:00
|
|
|
.dontZoom = FALSE,
|
|
|
|
.notrapSignals = FALSE,
|
|
|
|
.caughtSignal = FALSE,
|
2010-03-20 03:42:15 +01:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/common/xf86Privstr.h
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/common/xf86Privstr.h
|
2010-01-18 14:04:02 +01:00
|
|
|
@@ -67,6 +67,7 @@
|
|
|
|
#endif
|
2009-08-04 21:52:16 +02:00
|
|
|
Bool dontVTSwitch;
|
|
|
|
Bool dontZap;
|
|
|
|
+ Bool ZapWarning;
|
|
|
|
Bool dontZoom;
|
|
|
|
Bool notrapSignals; /* don't exit cleanly - die at fault */
|
|
|
|
Bool caughtSignal;
|
2011-09-06 18:02:28 +02:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/doc/man/Xorg.man
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/doc/man/Xorg.man
|
2010-03-20 03:42:15 +01:00
|
|
|
@@ -438,7 +438,7 @@
|
2010-01-18 14:04:02 +01:00
|
|
|
.B Ctrl+Alt+Backspace
|
|
|
|
Immediately kills the server -- no questions asked. It can be disabled by
|
|
|
|
setting the
|
2008-05-17 03:13:16 +02:00
|
|
|
-.B DontZap
|
|
|
|
+.B DontZap/ZapWarning
|
2010-01-18 14:04:02 +01:00
|
|
|
__xconfigfile__(__filemansuffix__) file option to a TRUE value.
|
2010-10-02 02:11:32 +02:00
|
|
|
.PP
|
|
|
|
.RS 8
|
2011-09-06 18:02:28 +02:00
|
|
|
--- xorg-server-1.7.99/hw/xfree86/doc/man/xorg.conf.man
|
|
|
|
+++ xorg-server-1.7.99/hw/xfree86/doc/man/xorg.conf.man
|
2010-03-20 03:42:15 +01:00
|
|
|
@@ -507,6 +507,13 @@
|
2009-08-04 21:52:16 +02:00
|
|
|
When this option is enabled, the action has no effect.
|
|
|
|
Default: off.
|
|
|
|
.TP 7
|
|
|
|
+.BI "Option \*qZapWarning\*q \*q" boolean \*q
|
|
|
|
+This warns the user loudly when the
|
|
|
|
+.B Ctrl+Alt+Backspace
|
|
|
|
+sequence is pressed for the first time but still terminates the __xservername__
|
|
|
|
+server when this key-sequence is pressed again shortly after.
|
2009-10-12 12:15:18 +02:00
|
|
|
+Default: on.
|
2009-08-04 21:52:16 +02:00
|
|
|
+.TP 7
|
|
|
|
.BI "Option \*qDontZoom\*q \*q" boolean \*q
|
|
|
|
This disallows the use of the
|
|
|
|
.B Ctrl+Alt+Keypad\-Plus
|