draw popup only on active display

This commit is contained in:
Felix Kratz 2021-12-19 21:06:37 +01:00
parent 086fd93939
commit 77367e4e10

View file

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