diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-06-05 10:37:17 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-06-05 10:37:17 +0200 |
| commit | 18dbc5fbeccd53a7b6e11f6e4ceb5974e39ea8b8 (patch) | |
| tree | 59f2078a820100496a08952f8fecf5db6dfd339e /README.uk.md | |
| parent | 301d2d21227d50919a8242b4efb5f3400c99288d (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 38288c3916d3d9f33771c220ae307d32e8a208e8 ("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 'README.uk.md')
0 files changed, 0 insertions, 0 deletions
