summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-14 17:07:36 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-14 17:07:36 (GMT)
commitd1edbe110240e5ede67f10cf6620cc6eef26b359 (patch)
treeb147d4425712bed2df7814bcce36525d64201f4d
parent0d2d8f944bee6a13bdb50be2468130e937e0c010 (diff)
parentf1710803cc17a50d098e945e86ad75d42b036935 (diff)
downloadQt-d1edbe110240e5ede67f10cf6620cc6eef26b359.zip
Qt-d1edbe110240e5ede67f10cf6620cc6eef26b359.tar.gz
Qt-d1edbe110240e5ede67f10cf6620cc6eef26b359.tar.bz2
Merge branch '4.5' into 4.6
-rw-r--r--src/gui/kernel/qkeymapper_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qkeymapper_x11.cpp b/src/gui/kernel/qkeymapper_x11.cpp
index 488cc6a..0ce77fe 100644
--- a/src/gui/kernel/qkeymapper_x11.cpp
+++ b/src/gui/kernel/qkeymapper_x11.cpp
@@ -536,7 +536,7 @@ void QKeyMapperPrivate::clearMappings()
coreDesc.keysyms_per_keycode = 0;
coreDesc.keysyms = XGetKeyboardMapping(X11->display,
coreDesc.min_keycode,
- coreDesc.max_keycode - coreDesc.min_keycode,
+ coreDesc.max_keycode - coreDesc.min_keycode + 1,
&coreDesc.keysyms_per_keycode);
#if 0