mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 21:30:17 +00:00
remove bounding rect comment and added position in rc
This commit is contained in:
parent
7e96b93e6f
commit
a61fae9621
2 changed files with 1 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
# TODO: Implement the plugin system for easier setup of preconfigured items
|
||||
|
||||
sketchybar -m config height 25
|
||||
sketchybar -m config position top
|
||||
sketchybar -m config padding_left 10
|
||||
sketchybar -m config padding_right 10
|
||||
sketchybar -m config bar_color 0x44000000 #0xaf202020
|
||||
|
|
|
@ -159,7 +159,6 @@ struct bar_item* bar_manager_get_item_by_point(struct bar_manager* bar_manager,
|
|||
for (int i = 0; i < bar_manager->bar_item_count; i++) {
|
||||
struct bar_item* bar_item = bar_manager->bar_items[i];
|
||||
if (bar_item->num_rects < sid || bar_item->bounding_rects[sid - 1] == NULL) continue;
|
||||
printf("Bounding rect: %f %f \n", bar_item->bounding_rects[sid - 1]->origin.x, bar_item->bounding_rects[sid - 1]->origin.y);
|
||||
if (cgrect_contains_point(bar_item->bounding_rects[sid - 1], &point)) {
|
||||
return bar_item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue