]> git.mdlowis.com Git - proto/labwc.git/commit
rcxml: use fixed arrays for rc.title_buttons_*
authorJohn Lindgren <john@jlindgren.net>
Tue, 9 Sep 2025 02:35:23 +0000 (22:35 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 13 Sep 2025 11:06:52 +0000 (12:06 +0100)
commitbca0ec07ac162ba7bed3d7aa66ed005bbd380063
tree46511eb20b262e819635bd379d7fb16ebb4d9bc3
parente17ec0203c3ea837829e8a50b62714430823c789
rcxml: use fixed arrays for rc.title_buttons_*

These are just lists of enum lab_node_type, with a bounded size and
no middle-insertions/removals, so linked lists are overkill.

Also, the use of wl_list_for_each[_reverse] just to access the first or
last entry in the list (corner button) was weird.
include/config/rcxml.h
src/config/rcxml.c
src/ssd/ssd-titlebar.c
src/theme.c