sway-patched-tray-menu-github/sway/config
Kenny Levinsen 1267e47de9 config/output: Refactor handling of tiered configs
Output configuration can be applied to a particular output in three
ways: As a wildcard, by connector name and by identifier. This in turn
means that three different configurations must be handled at any given
time.

In the current model, this is managed by merging new configuration into
every other matching configuration. At the same time, an additional
synthetic configuration is made which matchehes both identifier and name
at the same time, further complicating logic.

Instead, manage and store each configuration independently and merge
them in order when retrieving configuration for an output. When changes
are made to a less specific configuration, clear these fields from more
specific configurations to allow the change to take effect regardless of
precedence.

Fixes: https://github.com/swaywm/sway/issues/8048
2024-04-12 17:32:26 +02:00
..
bar.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
input.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
output.c config/output: Refactor handling of tiered configs 2024-04-12 17:32:26 +02:00
seat.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00