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 committed by Simon Ser
parent f167acce3a
commit 0babfce4b5
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;
};