mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 13:25:39 +02:00
particle: add on-click handler to debug log message
This commit is contained in:
parent
4e73ec669b
commit
384e9d0849
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue