diff options
author | Ran Benita <ran234@gmail.com> | 2014-02-16 10:59:42 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-02-16 11:05:32 +0200 |
commit | 18191702ae993bbbc64a7f7c2008f28d7c2c5531 (patch) | |
tree | 3a24bfaff60581179221562e902cbbd11cc1cd5b /src/xkbcomp/action.c | |
parent | af261cb605a038170af0842b6b4c5b2eb1d0b03e (diff) | |
download | libxkbcommon-18191702ae993bbbc64a7f7c2008f28d7c2c5531.tar.gz libxkbcommon-18191702ae993bbbc64a7f7c2008f28d7c2c5531.tar.bz2 libxkbcommon-18191702ae993bbbc64a7f7c2008f28d7c2c5531.zip |
keymap: change action flag NO_ACCEL -> ACCEL
It's easier to deal with, but we need to set it as "factory default".
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/action.c')
-rw-r--r-- | src/xkbcomp/action.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c index ad7f43f..018d4a8 100644 --- a/src/xkbcomp/action.c +++ b/src/xkbcomp/action.c @@ -118,6 +118,7 @@ NewActionsInfo(void) /* Increment default button. */ info->actions[ACTION_TYPE_PTR_DEFAULT].dflt.flags = 0; info->actions[ACTION_TYPE_PTR_DEFAULT].dflt.value = 1; + info->actions[ACTION_TYPE_PTR_MOVE].ptr.flags = ACTION_ACCEL; info->actions[ACTION_TYPE_SWITCH_VT].screen.flags = ACTION_SAME_SCREEN; return info; @@ -466,9 +467,9 @@ HandleMovePtr(struct xkb_keymap *keymap, union xkb_action *action, return ReportMismatch(keymap->ctx, action->type, field, "boolean"); if (set) - act->flags &= ~ACTION_NO_ACCEL; + act->flags |= ACTION_ACCEL; else - act->flags |= ACTION_NO_ACCEL; + act->flags &= ~ACTION_ACCEL; } return ReportIllegal(keymap->ctx, action->type, field); |