summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-20 18:57:31 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-20 18:57:54 +0930
commit4056595fc77c20052e226b402e38a2a914dca123 (patch)
treec6bba0ad6db581ae38d62b291e95d5b55545e3e5 /xkb
parent7a550cefd9417c22a4397ea4d103ddc347ab1a0f (diff)
xkb: remove superfluous checks in if statement.
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 19a171a86..0727ad83a 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -2052,7 +2052,7 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
* just MapNotify. we also need to send NKN if the geometry
* changed (obviously ...). */
if ((src->min_key_code != dst->min_key_code ||
- src->max_key_code != dst->max_key_code) && sendNotifies) {
+ src->max_key_code != dst->max_key_code)) {
nkn.oldMinKeyCode = dst->min_key_code;
nkn.oldMaxKeyCode = dst->max_key_code;
nkn.deviceID = nkn.oldDeviceID = pDev->id;
@@ -2062,8 +2062,8 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
nkn.requestMinor = X_kbSetMap; /* XXX bare-faced lie */
nkn.changed = XkbAllNewKeyboardEventsMask;
XkbSendNewKeyboardNotify(pDev, &nkn);
- }
- else if (sendNotifies) {
+ } else
+ {
mn.deviceID = pDev->id;
mn.minKeyCode = src->min_key_code;
mn.maxKeyCode = src->max_key_code;