make hotspot callback take an x11 button id

This commit is contained in:
Peter Rice 2018-07-15 20:16:37 -04:00
parent b314a8f2cc
commit 79a998849b
5 changed files with 51 additions and 6 deletions

View file

@ -147,7 +147,7 @@ static void wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
&& x < hotspot->x + hotspot->width
&& y < hotspot->y + hotspot->height) {
hotspot->callback(output, pointer->x, pointer->y,
button, hotspot->data);
wl_button_to_x11_button(button), hotspot->data);
}
}
}