summaryrefslogtreecommitdiff
path: root/Xi/ungrdevk.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/ungrdevk.c')
-rw-r--r--Xi/ungrdevk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xi/ungrdevk.c b/Xi/ungrdevk.c
index 8d9cdb17d..7f5e4aab0 100644
--- a/Xi/ungrdevk.c
+++ b/Xi/ungrdevk.c
@@ -60,6 +60,8 @@ SOFTWARE.
#include <X11/extensions/XIproto.h>
#include "exglobals.h"
#include "dixgrabs.h"
+#include "xkbsrv.h"
+#include "xkbstr.h"
#include "ungrdevk.h"
@@ -124,8 +126,8 @@ ProcXUngrabDeviceKey(ClientPtr client)
if (rc != Success)
return rc;
- if (((stuff->key > dev->key->curKeySyms.maxKeyCode) ||
- (stuff->key < dev->key->curKeySyms.minKeyCode))
+ if (((stuff->key > dev->key->xkbInfo->desc->max_key_code) ||
+ (stuff->key < dev->key->xkbInfo->desc->min_key_code))
&& (stuff->key != AnyKey))
return BadValue;