mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 13:20:24 +00:00
fix bar being unhidden after wake if it was hidden (#477)
This commit is contained in:
parent
a16906a59d
commit
6e6eefb890
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "bar_manager.h"
|
#include "bar_manager.h"
|
||||||
|
#include "bar.h"
|
||||||
#include "bar_item.h"
|
#include "bar_item.h"
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
#include "misc/env_vars.h"
|
#include "misc/env_vars.h"
|
||||||
|
@ -594,6 +595,9 @@ void bar_manager_begin(struct bar_manager* bar_manager) {
|
||||||
uint32_t did = display_arrangement_display_id(index);
|
uint32_t did = display_arrangement_display_id(index);
|
||||||
bar_manager->bars[bar_index] = bar_create(did);
|
bar_manager->bars[bar_index] = bar_create(did);
|
||||||
bar_manager->bars[bar_index]->adid = index;
|
bar_manager->bars[bar_index]->adid = index;
|
||||||
|
if (bar_manager->any_bar_hidden)
|
||||||
|
bar_set_hidden(bar_manager->bars[bar_index], true);
|
||||||
|
|
||||||
bar_index++;
|
bar_index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue