forked from external/yambar
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,
|
exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
|
||||||
enum mouse_event event, int x, int y)
|
enum mouse_event event, int x, int y)
|
||||||
{
|
{
|
||||||
LOG_DBG("on_mouse: exposable=%p, event=%s, x=%d, y=%d", exposable,
|
LOG_DBG("on_mouse: exposable=%p, event=%s, x=%d, y=%d (on-click=%s)",
|
||||||
event == ON_MOUSE_MOTION ? "motion" : "click", x, y);
|
exposable, event == ON_MOUSE_MOTION ? "motion" : "click", x, y,
|
||||||
|
exposable->on_click);
|
||||||
|
|
||||||
/* If we have a handler, change cursor to a hand */
|
/* If we have a handler, change cursor to a hand */
|
||||||
bar->set_cursor(bar, exposable->on_click == NULL ? "left_ptr" : "hand2");
|
bar->set_cursor(bar, exposable->on_click == NULL ? "left_ptr" : "hand2");
|
||||||
|
|
Loading…
Add table
Reference in a new issue