mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
disable popups when bar is hidden (closes #134)
This commit is contained in:
parent
d2bcbfe66b
commit
83afb1b028
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "bar.h"
|
||||
#include "bar_item.h"
|
||||
#include "misc/helpers.h"
|
||||
#include "popup.h"
|
||||
#include <_types/_uint32_t.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -193,6 +194,12 @@ bool bar_manager_set_hidden(struct bar_manager *bar_manager, uint32_t adid, bool
|
|||
bar_manager->any_bar_hidden |= hidden;
|
||||
}
|
||||
}
|
||||
|
||||
if (hidden) {
|
||||
for (int i = 0; i < bar_manager->bar_item_count; i++) {
|
||||
popup_set_drawing(&bar_manager->bar_items[i]->popup, false);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue