summaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/Input.cc
diff options
context:
space:
mode:
Diffstat (limited to 'unix/xserver/hw/vnc/Input.cc')
-rw-r--r--unix/xserver/hw/vnc/Input.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/unix/xserver/hw/vnc/Input.cc b/unix/xserver/hw/vnc/Input.cc
index e23f3d37..c0e28bcc 100644
--- a/unix/xserver/hw/vnc/Input.cc
+++ b/unix/xserver/hw/vnc/Input.cc
@@ -325,9 +325,8 @@ public:
void press()
{
- int state, index, maxKeysPerMod, keycode;
+ int state, maxKeysPerMod, keycode;
#if XORG >= 17
- int ret;
KeyCode *modmap = NULL;
state = XkbStateFieldFromRec(&dev->u.master->key->xkbInfo->state);
@@ -360,7 +359,6 @@ public:
int state, maxKeysPerMod;
KeyClassPtr keyc;
#if XORG >= 17
- int ret;
KeyCode *modmap = NULL;
keyc = dev->u.master->key;
@@ -511,7 +509,9 @@ static struct altKeysym_t {
void InputDevice::keyEvent(rdr::U32 keysym, bool down)
{
+#if XORG < 17
DeviceIntPtr master;
+#endif
KeyClassPtr keyc;
KeySymsPtr keymap = NULL;
KeySym *map = NULL;
@@ -795,6 +795,7 @@ static KeyCode KeysymToKeycode(KeySymsPtr keymap, KeySym ks, int* col)
return 0;
}
+#if XORG < 17
/* Fairly standard US PC Keyboard */
#define MIN_KEY 8
@@ -962,6 +963,7 @@ static Bool GetMappings(KeySymsPtr pKeySyms, CARD8 *pModMap)
return TRUE;
}
+#endif
static void keyboardBell(int percent, DeviceIntPtr device, pointer ctrl,
int class_)
@@ -972,8 +974,10 @@ static void keyboardBell(int percent, DeviceIntPtr device, pointer ctrl,
static int keyboardProc(DeviceIntPtr pDevice, int onoff)
{
+#if XORG < 17
KeySymsRec keySyms;
CARD8 modMap[MAP_LENGTH];
+#endif
DevicePtr pDev = (DevicePtr)pDevice;
switch (onoff) {