mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-17 04:58:28 +00:00
fix ghost bounding boxes
This commit is contained in:
parent
ff64e09ba0
commit
f147562fd8
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue