mirror of
https://github.com/swaywm/sway.git
synced 2026-03-27 07:58:40 -04:00
make hotspot callback take an x11 button id
This commit is contained in:
parent
b314a8f2cc
commit
79a998849b
5 changed files with 51 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue