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

Signed-off-by: Alexandr Shadchin <alexandr.shadc...@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

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to