mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-27 05:40:17 +00:00
removed dev prints
This commit is contained in:
parent
a61fae9621
commit
44ad32fd79
2 changed files with 0 additions and 5 deletions
|
@ -127,7 +127,6 @@ void bar_item_set_label_font(struct bar_item* bar_item, char *font_string) {
|
|||
}
|
||||
|
||||
void bar_item_on_click(struct bar_item* bar_item) {
|
||||
printf("%s \n", bar_item->name);
|
||||
if (strcmp(bar_item->on_click_script, "") != 0)
|
||||
fork_exec(bar_item->on_click_script, NULL);
|
||||
}
|
||||
|
|
|
@ -256,13 +256,9 @@ static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DOWN) {
|
|||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP)
|
||||
{
|
||||
CGPoint point = CGEventGetLocation(context);
|
||||
printf("Mouse Up Event \n");
|
||||
uint32_t sid = mission_control_index(display_space_id(display_manager_active_display_id()));
|
||||
printf("sid: %i \n", sid);
|
||||
struct bar_item* bar_item = bar_manager_get_item_by_point(&g_bar_manager, point, sid);
|
||||
if (bar_item) bar_item_on_click(bar_item);
|
||||
else { printf("No item found \n"); }
|
||||
|
||||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue