mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
fix bar being shown on wake in a fullscreen app on ventura and below (#451)
This commit is contained in:
parent
aad9d9aac4
commit
83438a8bd5
2 changed files with 2 additions and 1 deletions
|
@ -526,7 +526,7 @@ struct bar *bar_create(uint32_t did) {
|
|||
bar->did = did;
|
||||
bar->dsid = display_space_id(did);
|
||||
bar->sid = mission_control_index(bar->dsid);
|
||||
bar->shown = true;
|
||||
bar->shown = SLSSpaceGetType(g_connection, bar->dsid) != 4;
|
||||
g_bar_manager.bar_needs_update = true;
|
||||
bar_create_window(bar);
|
||||
return bar;
|
||||
|
|
|
@ -39,6 +39,7 @@ void bar_manager_init(struct bar_manager* bar_manager) {
|
|||
bar_manager->notch_offset = 0;
|
||||
bar_manager->active_adid = display_arrangement(display_active_display_id());
|
||||
bar_manager->might_need_clipping = false;
|
||||
bar_manager->sticky = false;
|
||||
|
||||
image_init(&bar_manager->current_artwork);
|
||||
background_init(&bar_manager->background);
|
||||
|
|
Loading…
Reference in a new issue