mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
swaybar: Move swaybar_teardown to free_state
This commit is contained in:
parent
fcc47cb3bd
commit
6140f9c42c
6 changed files with 87 additions and 49 deletions
|
|
@ -11,7 +11,7 @@ typedef enum {UNDEF, TEXT, I3BAR} command_protocol;
|
|||
|
||||
struct status_line {
|
||||
list_t *block_line;
|
||||
char *text_line;
|
||||
const char *text_line;
|
||||
command_protocol protocol;
|
||||
};
|
||||
|
||||
|
|
@ -42,4 +42,9 @@ struct status_line *init_status_line();
|
|||
*/
|
||||
bool handle_status_line(struct swaybar_state *st);
|
||||
|
||||
/**
|
||||
* Free status line struct.
|
||||
*/
|
||||
void free_status_line(struct status_line *line);
|
||||
|
||||
#endif /* _SWAYBAR_STATUS_LINE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue