mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05: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
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "client/registry.h"
|
||||
#include "client/window.h"
|
||||
#include "list.h"
|
||||
|
||||
struct swaybar_state {
|
||||
struct swaybar_config *config;
|
||||
|
|
@ -37,8 +38,13 @@ struct workspace {
|
|||
struct swaybar_state *init_state();
|
||||
|
||||
/**
|
||||
* free workspace struct.
|
||||
* free workspace list.
|
||||
*/
|
||||
void free_workspace(void *item);
|
||||
void free_workspaces(list_t *workspaces);
|
||||
|
||||
/**
|
||||
* Free state struct.
|
||||
*/
|
||||
void free_state(struct swaybar_state *state);
|
||||
|
||||
#endif /* _SWAYBAR_STATE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue