sway-patched-tray-menu/swaynag
Greg Depoire--Ferrer 956b689d6a swaynag: move close_button up to fix SIGSEGV
When swaynag_parse_options encounters '--dismiss-button' (or its
shorthand '-s'), it sets the text of the first button in the
swaynag.buttons list, which is expected to exist and to be the dismiss
button, to the one passed by the user.

Commit 4780afb68b ("swaynag: statically
allocate button_close, and move declaration") moved the list
initialization to after swaynag_parse_options is called which made that
code fail.

For example, the command 'swaynag --dismiss-button Dismiss' crashes and
'swaynag --message Message --button Yes "" --dismiss-button Dismiss'
shows the wrong buttons.

Move it back to before swaynag_parse_options is called.
2022-06-05 19:05:26 +02:00
..
config.c swaynag: combine consecutive declaration/assignments 2022-05-07 15:57:18 +02:00
main.c swaynag: move close_button up to fix SIGSEGV 2022-06-05 19:05:26 +02:00
meson.build swaybg: split into standalone project 2019-04-25 18:44:28 +03:00
render.c Rename pango_printf to render_text 2021-09-13 14:22:51 +02:00
swaynag.1.scd swaynag: adds option to set wayland shell layer 2021-06-17 11:47:49 +02:00
swaynag.5.scd swaynag: adds option to set wayland shell layer 2021-06-17 11:47:49 +02:00
swaynag.c remove unnecessary strlen call 2022-03-15 11:40:32 +01:00
types.c swaynag: adds option to set wayland shell layer 2021-06-17 11:47:49 +02:00