summaryrefslogtreecommitdiff
path: root/src/xkbcomp
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-02-15 23:27:23 +0200
committerRan Benita <ran234@gmail.com>2014-02-15 23:31:54 +0200
commit11a9f76bf220e6bf89174c7654f03fc3947be9d3 (patch)
treef0be30df437791d7b50f520548fd3a4bff2c789b /src/xkbcomp
parentbe27b6030627b732639d8e885ad323440d6b9711 (diff)
downloadlibxkbcommon-11a9f76bf220e6bf89174c7654f03fc3947be9d3.tar.gz
libxkbcommon-11a9f76bf220e6bf89174c7654f03fc3947be9d3.tar.bz2
libxkbcommon-11a9f76bf220e6bf89174c7654f03fc3947be9d3.zip
keymap-dump: don't print "affect=lock" in PtrLock
It's the same as no flags, so might as well not print it. (In fact it is slightly harmful, because it actively *clears* the affect flags, which might have been set in some other manner. But in practice this cannot happen). Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp')
-rw-r--r--src/xkbcomp/keymap-dump.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/xkbcomp/keymap-dump.c b/src/xkbcomp/keymap-dump.c
index 942d541..c014446 100644
--- a/src/xkbcomp/keymap-dump.c
+++ b/src/xkbcomp/keymap-dump.c
@@ -335,18 +335,12 @@ write_action(struct xkb_keymap *keymap, struct buf *buf,
case ACTION_LOCK_NO_UNLOCK:
args = ",affect=lock";
break;
-
case ACTION_LOCK_NO_LOCK:
args = ",affect=unlock";
break;
-
case ACTION_LOCK_NO_LOCK | ACTION_LOCK_NO_UNLOCK:
args = ",affect=neither";
break;
-
- default:
- args = ",affect=both";
- break;
}
case ACTION_TYPE_PTR_BUTTON:
write_buf(buf, "%s%s(button=", prefix, type);