2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86Config.c
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/common/xf86Config.c
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/common/xf86Config.c
|
2009-08-04 21:52:16 +02:00
|
|
|
@@ -706,6 +706,7 @@ typedef enum {
|
|
|
|
FLAG_NOTRAPSIGNALS,
|
|
|
|
FLAG_DONTVTSWITCH,
|
|
|
|
FLAG_DONTZAP,
|
|
|
|
+ FLAG_ZAPWARNING,
|
|
|
|
FLAG_DONTZOOM,
|
|
|
|
FLAG_DISABLEVIDMODE,
|
|
|
|
FLAG_ALLOWNONLOCAL,
|
|
|
|
@@ -743,6 +744,8 @@ static OptionInfoRec FlagOptions[] = {
|
|
|
|
{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,
|
|
|
|
@@ -855,6 +858,7 @@ configServerFlags(XF86ConfFlagsPtr flags
|
|
|
|
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);
|
2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86Events.c
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/common/xf86Events.c
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/common/xf86Events.c
|
2009-08-04 21:52:16 +02:00
|
|
|
@@ -191,12 +191,26 @@ xf86ProcessActionEvent(ActionEvent actio
|
2008-03-21 02:47:42 +01:00
|
|
|
#endif
|
|
|
|
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) {
|
|
|
|
+ xf86OSRingBell(100, 1000, 500);
|
|
|
|
+ LastZap = NewZap;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
#ifdef XFreeXDGA
|
|
|
|
- DGAShutdown();
|
|
|
|
+ DGAShutdown();
|
|
|
|
#endif
|
|
|
|
- GiveUp(0);
|
|
|
|
- }
|
|
|
|
+ GiveUp(0);
|
|
|
|
break;
|
|
|
|
case ACTION_NEXT_MODE:
|
|
|
|
if (!xf86Info.dontZoom)
|
2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86Globals.c
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/common/xf86Globals.c
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/common/xf86Globals.c
|
2009-03-02 01:19:45 +01:00
|
|
|
@@ -106,6 +106,7 @@ xf86InfoRec xf86Info = {
|
|
|
|
.vtRequestsPending = FALSE,
|
|
|
|
.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,
|
2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86Privstr.h
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/common/xf86Privstr.h
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/common/xf86Privstr.h
|
2009-08-04 21:52:16 +02:00
|
|
|
@@ -72,6 +72,7 @@ typedef struct {
|
|
|
|
Bool vtRequestsPending;
|
|
|
|
Bool dontVTSwitch;
|
|
|
|
Bool dontZap;
|
|
|
|
+ Bool ZapWarning;
|
|
|
|
Bool dontZoom;
|
|
|
|
Bool notrapSignals; /* don't exit cleanly - die at fault */
|
|
|
|
Bool caughtSignal;
|
2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/doc/man/Xorg.man.pre
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/doc/man/Xorg.man.pre
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/doc/man/Xorg.man.pre
|
2009-03-02 01:19:45 +01:00
|
|
|
@@ -452,8 +452,8 @@ are:
|
|
|
|
Immediately kills the server -- no questions asked. This is disabled by
|
|
|
|
default. It can be enabled with the -retro command line flag or by setting
|
|
|
|
the
|
2008-05-17 03:13:16 +02:00
|
|
|
-.B DontZap
|
2009-03-02 01:19:45 +01:00
|
|
|
-__xconfigfile__(__filemansuffix__) file option to a FALSE value.
|
2008-05-17 03:13:16 +02:00
|
|
|
+.B DontZap/ZapWarning
|
2009-03-02 01:19:45 +01:00
|
|
|
+__xconfigfile__(__filemansuffix__) file options to a FALSE value.
|
2008-05-17 03:13:16 +02:00
|
|
|
.TP 8
|
|
|
|
.B Ctrl+Alt+Keypad-Plus
|
|
|
|
Change video mode to next one specified in the configuration file.
|
2009-08-28 20:30:20 +02:00
|
|
|
Index: xorg-server-1.6.3.901/hw/xfree86/doc/man/xorg.conf.man.pre
|
2009-08-04 21:52:16 +02:00
|
|
|
===================================================================
|
2009-08-28 20:30:20 +02:00
|
|
|
--- xorg-server-1.6.3.901.orig/hw/xfree86/doc/man/xorg.conf.man.pre
|
|
|
|
+++ xorg-server-1.6.3.901/hw/xfree86/doc/man/xorg.conf.man.pre
|
2009-08-04 21:52:16 +02:00
|
|
|
@@ -470,6 +470,13 @@ This action is normally used to terminat
|
|
|
|
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
|