fixes click registrationfor items in brackets (#216)

This commit is contained in:
Felix Kratz 2022-07-19 14:29:33 +02:00
parent 9218890342
commit 9fa8d2e8ea

View file

@ -125,7 +125,8 @@ EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP) {
struct bar_item* bar_item = bar_manager_get_item_by_wid(&g_bar_manager,
wid,
adid );
if (!bar_item) {
if (!bar_item || bar_item->type == BAR_COMPONENT_GROUP) {
CGPoint point = CGEventGetLocation(context);
bar_item = bar_manager_get_item_by_point(&g_bar_manager, point, adid);
}