[PATCH xserver 8/8] xfree86: Don't export variable VTSwitchEnabled

Alexandr Shadchin alexandr.shadchin at gmail.com
Sat Nov 26 12:49:08 PST 2011


Use function xf86EnableVTSwitch() instead direct access to VTSwitchEnabled.
Keyboard driver no longer uses this variable.

Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
 hw/xfree86/common/xf86.h       |    2 --
 hw/xfree86/common/xf86Events.c |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h
index f216d5e..9a2fa09 100644
--- a/hw/xfree86/common/xf86.h
+++ b/hw/xfree86/common/xf86.h
@@ -71,8 +71,6 @@ extern _X_EXPORT Bool sbusSlotClaimed;
 extern _X_EXPORT confDRIRec xf86ConfigDRI;
 extern _X_EXPORT Bool xf86DRI2Enabled(void);
 
-extern _X_EXPORT Bool VTSwitchEnabled;	/* kbd driver */
-
 #define XF86SCRNINFO(p) ((ScrnInfoPtr)dixLookupPrivate(&(p)->devPrivates, \
 						       xf86ScreenKey))
 #define XF86FLIP_PIXELS() \
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 41ffabd..1436a2a 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -93,7 +93,7 @@
  * This has been generalised to work with Linux and *BSD+syscons (DHD)
  */
 
-Bool VTSwitchEnabled = TRUE;		/* Allows run-time disabling for
+static Bool VTSwitchEnabled = TRUE;	/* Allows run-time disabling for
                                          *BSD and for avoiding VT
                                          switches when using the DRI
                                          automatic full screen mode.*/
-- 
1.7.6



More information about the xorg-devel mailing list