mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Add relative coordinates in JSON for i3bar click events
Compatibility with i3 commit 161db6f17d734ac9deb0a20e81b78d4b2a92ce68.
This commit is contained in:
parent
bca21ee0cf
commit
24e8ba048a
5 changed files with 20 additions and 10 deletions
|
|
@ -133,8 +133,8 @@ static void wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
|||
&& y >= hotspot->y
|
||||
&& x < hotspot->x + hotspot->width
|
||||
&& y < hotspot->y + hotspot->height) {
|
||||
if (HOTSPOT_IGNORE == hotspot->callback(output, pointer->x, pointer->y,
|
||||
wl_button_to_x11_button(button), hotspot->data)) {
|
||||
if (HOTSPOT_IGNORE == hotspot->callback(output, hotspot,
|
||||
pointer->x, pointer->y, wl_button_to_x11_button(button), hotspot->data)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -166,8 +166,8 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
|
|||
&& y >= hotspot->y
|
||||
&& x < hotspot->x + hotspot->width
|
||||
&& y < hotspot->y + hotspot->height) {
|
||||
if (HOTSPOT_IGNORE == hotspot->callback(
|
||||
output, pointer->x, pointer->y, button, hotspot->data)) {
|
||||
if (HOTSPOT_IGNORE == hotspot->callback(output, hotspot,
|
||||
pointer->x, pointer->y, button, hotspot->data)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue