mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
chase: use wayland pointer enums rather than wlr ones
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
This commit is contained in:
parent
d8d45dc2cb
commit
5c6e1ed878
6 changed files with 25 additions and 17 deletions
|
|
@ -441,8 +441,8 @@ handle_tip(struct wl_listener *listener, void *data)
|
|||
cursor_emulate_button(tablet->seat,
|
||||
button,
|
||||
ev->state == WLR_TABLET_TOOL_TIP_DOWN
|
||||
? WLR_BUTTON_PRESSED
|
||||
: WLR_BUTTON_RELEASED,
|
||||
? WL_POINTER_BUTTON_STATE_PRESSED
|
||||
: WL_POINTER_BUTTON_STATE_RELEASED,
|
||||
ev->time_msec);
|
||||
}
|
||||
}
|
||||
|
|
@ -500,7 +500,11 @@ handle_button(struct wl_listener *listener, void *data)
|
|||
} else {
|
||||
if (button) {
|
||||
is_down_mouse_emulation = ev->state == WLR_BUTTON_PRESSED;
|
||||
cursor_emulate_button(tablet->seat, button, ev->state, ev->time_msec);
|
||||
cursor_emulate_button(tablet->seat, button,
|
||||
ev->state == WLR_BUTTON_PRESSED
|
||||
? WL_POINTER_BUTTON_STATE_PRESSED
|
||||
: WL_POINTER_BUTTON_STATE_RELEASED,
|
||||
ev->time_msec);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue