forked from external/yambar
exposable: log button name in debug log
This commit is contained in:
parent
dd724d1bc2
commit
af163d3f77
1 changed files with 4 additions and 3 deletions
|
@ -144,9 +144,10 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
|
||||||
enum mouse_event event, enum mouse_button btn,
|
enum mouse_event event, enum mouse_button btn,
|
||||||
int x, int y)
|
int x, int y)
|
||||||
{
|
{
|
||||||
LOG_DBG("on_mouse: exposable=%p, event=%s, btn=%d, x=%d, y=%d (on-click=%s)",
|
LOG_DBG("on_mouse: exposable=%p, event=%s, btn=%s, x=%d, y=%d (on-click=%s)",
|
||||||
exposable, event == ON_MOUSE_MOTION ? "motion" : "click", btn, x, y,
|
exposable, event == ON_MOUSE_MOTION ? "motion" : "click",
|
||||||
exposable->on_click);
|
btn == MOUSE_BTN_NONE ? "none" : btn == MOUSE_BTN_LEFT ? "left" : btn == MOUSE_BTN_MIDDLE ? "middle" : "right",
|
||||||
|
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