From 384e9d08493b784908377581066109f300fb3646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 23 Sep 2019 18:33:57 +0200 Subject: [PATCH] particle: add on-click handler to debug log message --- particle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/particle.c b/particle.c index 5c116bb..01b0148 100644 --- a/particle.c +++ b/particle.c @@ -143,8 +143,9 @@ void exposable_default_on_mouse(struct exposable *exposable, struct bar *bar, enum mouse_event event, int x, int y) { - LOG_DBG("on_mouse: exposable=%p, event=%s, x=%d, y=%d", exposable, - event == ON_MOUSE_MOTION ? "motion" : "click", x, y); + LOG_DBG("on_mouse: exposable=%p, event=%s, x=%d, y=%d (on-click=%s)", + exposable, event == ON_MOUSE_MOTION ? "motion" : "click", x, y, + exposable->on_click); /* If we have a handler, change cursor to a hand */ bar->set_cursor(bar, exposable->on_click == NULL ? "left_ptr" : "hand2");