mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Move default bar config to bar creation.
Get rid of `config->bar` and define the default bar config options when a bar is initialized.
This commit is contained in:
parent
0b5c695d8e
commit
0513322c03
3 changed files with 27 additions and 30 deletions
|
|
@ -125,7 +125,6 @@ struct sway_config {
|
|||
list_t *output_configs;
|
||||
list_t *criteria;
|
||||
struct sway_mode *current_mode;
|
||||
struct bar_config bar;
|
||||
struct bar_config *current_bar;
|
||||
uint32_t floating_mod;
|
||||
uint32_t dragging_key;
|
||||
|
|
@ -176,6 +175,11 @@ int sway_mouse_binding_cmp(const void *a, const void *b);
|
|||
int sway_mouse_binding_cmp_buttons(const void *a, const void *b);
|
||||
void free_sway_mouse_binding(struct sway_mouse_binding *smb);
|
||||
|
||||
/**
|
||||
* Allocate and initialize default bar configuration.
|
||||
*/
|
||||
struct bar_config *default_bar_config(void);
|
||||
|
||||
/**
|
||||
* Global config singleton.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue