fix bar being shown on wake in a fullscreen app on ventura and below (#451)

This commit is contained in:
Felix Kratz 2023-12-05 17:16:56 +01:00
parent aad9d9aac4
commit 83438a8bd5
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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);