diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-06 20:04:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 19:19:11 +0000 |
| commit | f6a591b80a820ae5ab6886eb9ba43c90986f302b (patch) | |
| tree | 142fc28bab22e058505cccb6fe104442b64ebe01 /scripts | |
| parent | config: do mouse binding collision detection after loading the conf (diff) | |
config: unify key- and mouse bindings
With this patch, key- and mouse-bindings structs (the non-layout
specific ones) are unified into a single struct.
The logic that parses, and manages, the key- and mouse binding lists
are almost identical. The *only* difference between a key- and a mouse
binding is that key bindings have an XKB symbol, and mouse bindings a
button and click-count.
The new, unified, struct uses a union around these, and all functions
that need to know which members to use/operate on now takes a ‘type’
parameter.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
