sway/sway
Furkan Sahin d75dfba0e7 output/background: fix config ignoring fallback color
currently, the output background command handler prematurely
returns with an error if the background file cannot be accessed.
It should only error if user did not provide fallback color.

closes #8556

Changes

- Introduce variables to avoid uneccessary writing on output members
- Log a debug message when fallback is being used over inaccessible
   file
- Always parse the background color and swaynag warn if it is incorrect

- when updating output member variables, free previous values
- add cleanup label and goto it if `strdup` fails
- Move output->member initializations to before parsing fallback, Also
free and init output->background as well
2025-02-04 22:20:21 -05:00
..
commands output/background: fix config ignoring fallback color 2025-02-04 22:20:21 -05:00
config config/output: don't leak background_fallback 2025-01-16 16:03:36 +01:00
desktop Drop wlr_matrix.h include from sway/desktop/output.c 2025-01-26 18:36:07 -05:00
input input/cursor: remove tool_proximity listener in destroy 2025-01-27 00:42:37 -05:00
tree tree/container: support sandbox properties in title format 2025-01-13 08:54:23 +01:00
commands.c Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
config.c Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
criteria.c criteria: add sandbox properties 2025-01-13 08:54:23 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c ipc-json: add sandbox properties to view JSON 2025-01-13 08:54:23 +01:00
ipc-server.c ipc-server: Force modeset if needed after executing commands 2024-11-17 19:11:58 +01:00
lock.c ext-session-lock: Do not use commit listener to arrange 2024-09-20 00:26:36 -04:00
main.c Use has_prefix() instead of strncmp() throughout 2025-01-07 16:35:31 +01:00
meson.build Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
realtime.c realtime: request SCHED_RR using CAP_SYS_NICE 2022-05-18 11:20:17 +02:00
scene_descriptor.c fix: sway crashes if switch to another workspace with surface when IME popup is shown 2024-10-07 23:07:25 -04:00
server.c Add ext-image-copy-capture-v1 and ext-image-capture-source-v1 2025-01-21 20:26:19 +03:00
sway-bar.5.scd man: update Pango font description URL 2021-08-04 02:15:04 +02:00
sway-input.5.scd Add support for LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY 2024-11-23 13:06:49 +03:00
sway-ipc.7.scd ipc-json: add sandbox properties to view JSON 2025-01-13 08:54:23 +01:00
sway-output.5.scd Add toggle for output adaptive_sync 2024-09-20 15:38:27 +02:00
sway.1.scd man: update maintainer 2021-01-08 09:33:51 +01:00
sway.5.scd tree/container: support sandbox properties in title format 2025-01-13 08:54:23 +01:00
sway_text_node.c sway_text_node: avoid unnecessary redraws 2024-07-03 18:30:08 -04:00
swaynag.c Define _POSIX_C_SOURCE globally 2024-02-23 17:43:19 +03:00
xdg_activation_v1.c xdg-activation: launcher tokens are activation requests 2024-07-06 16:12:27 +02:00
xdg_decoration.c xdg-shell: chase events update 2023-11-23 19:41:57 +01:00