mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
fix indentation to use tabs
This commit is contained in:
parent
e445fc1344
commit
85f0a101c3
8 changed files with 13 additions and 11 deletions
|
|
@ -78,7 +78,7 @@ struct swaybar_config *init_config(void) {
|
|||
|
||||
#if HAVE_TRAY
|
||||
config->tray_padding = 2;
|
||||
config->tray_last = true;
|
||||
config->tray_last = true;
|
||||
wl_list_init(&config->tray_bindings);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -308,9 +308,9 @@ static bool ipc_parse_config(
|
|||
config->tray_padding = json_object_get_int(tray_padding);
|
||||
}
|
||||
|
||||
if ((json_object_object_get_ex(bar_config, "tray_last", &tray_last))) {
|
||||
config->tray_last = json_object_get_boolean(tray_last);
|
||||
}
|
||||
if ((json_object_object_get_ex(bar_config, "tray_last", &tray_last))) {
|
||||
config->tray_last = json_object_get_boolean(tray_last);
|
||||
}
|
||||
|
||||
struct tray_binding *tray_bind = NULL, *tmp_tray_bind = NULL;
|
||||
wl_list_for_each_safe(tray_bind, tmp_tray_bind, &config->tray_bindings,
|
||||
|
|
|
|||
|
|
@ -675,14 +675,14 @@ static uint32_t render_to_cairo(struct render_context *ctx) {
|
|||
* utilize the available space.
|
||||
*/
|
||||
double x = output->width;
|
||||
/* config->tray_last = false; */
|
||||
|
||||
#if HAVE_TRAY
|
||||
if (bar->tray && config->tray_last) {
|
||||
uint32_t h = render_tray(cairo, output, &x);
|
||||
max_height = h > max_height ? h : max_height;
|
||||
}
|
||||
#endif
|
||||
if (bar->status) {
|
||||
if (bar->status) {
|
||||
uint32_t h = render_status_line(ctx, &x);
|
||||
max_height = h > max_height ? h : max_height;
|
||||
}
|
||||
|
|
@ -692,6 +692,7 @@ static uint32_t render_to_cairo(struct render_context *ctx) {
|
|||
max_height = h > max_height ? h : max_height;
|
||||
}
|
||||
#endif
|
||||
|
||||
x = 0;
|
||||
if (config->workspace_buttons) {
|
||||
struct swaybar_workspace *ws;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue