fix ghost bounding boxes

This commit is contained in:
FelixKratz 2021-10-29 16:15:16 +02:00
parent ff64e09ba0
commit f147562fd8

View file

@ -152,17 +152,18 @@ void bar_draw_bar_items(struct bar* bar) {
struct bar_item* bar_item = g_bar_manager.bar_items[i];
if (bar_item->update_mask & UPDATE_MOUSE_ENTERED || bar_item->update_mask & UPDATE_MOUSE_EXITED)
SLSAddTrackingRect(g_connection, bar->id, CGRectInset(bar_item_construct_bounding_rect(bar_item), 1, 1));
if (!bar_item->queued_for_redraw && atomic_redraw) continue;
bar_item_remove_associated_bar(bar_item, bar->adid);
if (!bar_draws_item(bar, bar_item)) continue;
bar_item_append_associated_bar(bar_item, bar->adid);
if (!bar_item->queued_for_redraw && atomic_redraw) continue;
SLSAddTrackingRect(g_connection, bar->id, CGRectInset(bar_item_construct_bounding_rect(bar_item), 1, 1));
struct text_line* label = &bar_item->label.line;
struct text_line* icon = &bar_item->icon.line;
bar_item_append_associated_bar(bar_item, bar->adid);
bar_item_set_bounding_rect_for_display(bar_item, bar->adid, bar->origin);
bar_draw_group(bar, bar_item, bar->adid);