mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-18 13:38:23 +00:00
draw popup only on active display
This commit is contained in:
parent
086fd93939
commit
77367e4e10
1 changed files with 11 additions and 10 deletions
|
@ -26,6 +26,7 @@ bool bar_draws_item(struct bar* bar, struct bar_item* bar_item) {
|
|||
}
|
||||
|
||||
void bar_calculate_popup_anchor_for_bar_item(struct bar* bar, struct bar_item* bar_item) {
|
||||
if (bar->adid != display_arrangement(display_active_display_id())) return;
|
||||
bar_item->popup.cell_size = bar->frame.size.height;
|
||||
popup_calculate_bounds(&bar_item->popup);
|
||||
CGPoint anchor = bar->origin;
|
||||
|
|
Loading…
Add table
Reference in a new issue