swaynag: allocate button_details with details

They are used together, so it doesn't make sense to allocate them
separately.
This commit is contained in:
Nihal Jere 2022-02-28 17:02:40 -06:00
parent 061ffc30ea
commit 16fc88d24c
3 changed files with 8 additions and 18 deletions

View file

@ -67,7 +67,7 @@ struct swaynag_details {
int offset;
int visible_lines;
int total_lines;
struct swaynag_button *button_details;
struct swaynag_button button_details;
struct swaynag_button button_up;
struct swaynag_button button_down;
};