John Lindgren
cb40cdc36c
common: Add additional memory utilities (xzalloc() etc.)
2022-09-17 10:57:30 -04:00
Consolatis
39cdba36a8
src/config/keybind.c: fix keybind insertion order
...
This restores the intended behavior of keybinds set by `<default />`
to be overwritten by manually configured keybinds which come later in
the config.
In `src/keyboard.c`, `handle_keybinding()` is going backwards through
the list of keybindings and breaks after the first match.
`wl_list_insert(&list_node, item)` will insert the new item *after* the
list_node so if its called multiple times with the same list_node as
fist argument the result will be a reversed list. Using `list_node.prev`
instead will result in a non-reversed list.
2022-06-03 22:54:32 +01:00
Johan Malm
5b34c81768
Fix trivial coding style breaches
2022-04-04 20:53:36 +01:00
Consolatis
0b45cce648
Rewrite action handling to allow multiple actions at once
2022-01-05 16:22:41 +00:00
Consolatis
f28319be54
config/keybind.c: Don't overwrite the stack
2022-01-03 08:27:22 +00:00
bi4k8
c34a2fc976
make parse_modifiers public
2021-12-01 15:11:21 -05:00
Joshua Ashton
95ce9e0264
keybind: Fix shift modifiers
...
Need to lower the syms for these to match!
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-21 18:15:42 +01:00
Johan Malm
ebb632419b
*.c: add SPDX-License-Identifier
2021-09-24 21:45:48 +01:00
Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
cd9fe2900e
keybind: use XKB_KEYSYM_CASE_INSENSITIVE
2020-12-29 19:02:04 +00:00
Johan Malm
96e05057a3
Update .clang-format
...
Align with wlroots style
2020-09-28 20:41:41 +01:00
Johan Malm
b2504bdf9a
keybind: s/add/create/
2020-09-02 21:05:28 +01:00
Johan Malm
2a17df0f8b
Add log.c with info() and warn()
2020-08-12 19:37:44 +01:00
Johan Malm
4d1363dcae
include/: refactor header files more
2020-08-03 20:56:38 +01:00
Johan Malm
158f42d1e8
src/rcxml.c: parse <keybind>
2020-06-19 22:00:22 +01:00
Johan Malm
f6578248c0
src/keybind.c: move keybind_print() to dbg.c
2020-06-18 20:39:55 +01:00
Johan Malm
7440919452
Add action.c
2020-06-18 20:18:01 +01:00
Johan Malm
1e342f8976
src/keyboard.c: handle list of keybinds
2020-06-17 21:21:28 +01:00
Johan Malm
40f01ed3c9
Add keybind.c
2020-06-16 07:21:53 +01:00