particle: add on-click handler to debug log message

This commit is contained in:
Daniel Eklöf 2019-09-23 18:33:57 +02:00
parent 4e73ec669b
commit 384e9d0849
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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");