diff options
author | Greg Depoire--Ferrer <greg@gregdf.com> | 2022-06-05 10:37:17 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-06-05 19:05:26 +0200 |
commit | 956b689d6ab18ad78f53f15cdeb7606af98e9e5e (patch) | |
tree | 59f2078a820100496a08952f8fecf5db6dfd339e /assets/Sway_Wallpaper_Blue_768x1024.png | |
parent | e5728052b59fb5b476c78c9f18b812a85d7f4503 (diff) |
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 4780afb68b4ee2cdf0e4925f40cf885819f8a74a ("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.
Diffstat (limited to 'assets/Sway_Wallpaper_Blue_768x1024.png')
0 files changed, 0 insertions, 0 deletions